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

feat: OAuth認証を追加 #20

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft

feat: OAuth認証を追加 #20

wants to merge 17 commits into from

Conversation

saka-naname
Copy link
Contributor

@saka-naname saka-naname commented Jan 12, 2025

関連 Issue(s)

変更内容

  • Auth.jsを利用したOAuth認証の追加
  • Prismaとの繋ぎ込み
  • 登録フローの仮作成

Warning

Auth.js との連携を円滑にするため、既存の User モデルを含む構造に変更を加えています

スクリーンショット

確認手順

  1. .env ファイルを更新 (DMいただければ渡します)
  2. 開発サーバを起動する
  3. Postman等を使用して localhost:3000/api/ext/user/create にPOSTリクエストを送信し、ユーザーを仮登録する
  4. localhost:3000/login にアクセス
  5. 大学Googleアカウントを選択してログイン
  6. ログインに成功した場合、 localhost:3000/joined に移行する
  7. この時点では /channels 等のページを開こうとしても /joined にリダイレクトされるようになっている
  8. Joinedページの手順を全て完了し、「Digichatをはじめる」ボタンを押すと他ページを開けるようになる

@saka-naname saka-naname marked this pull request as ready for review January 12, 2025 12:24
@saka-naname saka-naname marked this pull request as draft January 12, 2025 12:36
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.

Auth.jsの導入
1 participant