Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

206 oauthの認証ボタン作るます #216

Merged
merged 11 commits into from
May 26, 2023

Conversation

wyoheiii
Copy link
Collaborator

@wyoheiii wyoheiii commented May 13, 2023

next-authの設定をしてみた
localhost:3000の右上にログインボタンがあるので押すとauthログインページに飛び〇〇でログインができるようした(情報を取得してるだけで何もしてない)

nodeのバージョンを下げた。バグで42authがエラーになる
nodejs/node#47822

この後にやるべきこと
backendにリクエストを飛ばしてユーザーの情報を得る

http://localhost:3000/api/auth/providers
にリクエストすると設定してある全てのproviderの情報を得られる
https://next-auth.js.org/getting-started/rest-api#get-apiauthproviders

実装の参考
https://next-auth.js.org/getting-started/example
https://next-auth.js.org/configuration/initialization#route-handlers-app

providers
https://next-auth.js.org/providers/

@wyoheiii wyoheiii force-pushed the 206-oauthの認証ボタン作るます branch from 251792e to f8439a7 Compare May 14, 2023 09:40
@wyoheiii wyoheiii marked this pull request as ready for review May 14, 2023 10:04
@s-xix98 s-xix98 merged commit 2027ae5 into main May 26, 2023
@s-xix98 s-xix98 deleted the 206-oauthの認証ボタン作るます branch May 26, 2023 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants