Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

ユーザ新規登録機能(Firebase)の実装 #3

Description

@kichi2004

Parent Issue: #2
Parent Branch: feature/user-auth

処理の流れ

[フロント]「Google でログイン」をクリックして認証(POST /user/firebase
[バック] 仮ユーザ作成(存在しない場合)←ここまで完成
[フロント] ユーザ名を入力して送信(POST /user/register
[バック] 下記参照
[フロント] 設定してあるリダイレクト URL(現時点では気にしなくても良い) または '/' にリダイレクト

POST /user/register の実装

クッキーに一致するユーザが TEMPORARY でない場合 → Bad Request(詳しくは #2 の参考資料を確認)
user.userName を更新,user.roleUSER にセット

フロントの実装

フロントの auth/register.tsx を編集する
デザインは適当でOK

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions