Open yukyu30 opened 8 months ago
sequenceDiagram
participant User as ユーザー
participant NextJS as Next.jsクライアント
participant Google as Google認証
participant Rails as Railsサーバー
User->>NextJS: Googleでサインイン
NextJS->>Google: 認証リクエスト
Google-->>NextJS: 認証トークン
NextJS->>Rails: 認証トークンとユーザー情報を送信
Rails-->>NextJS: ユーザー登録/API Token発行
NextJS-->> User: サインイン完了
NextJS->>Rails: API Tokenを含んだQuery,Mutation
バックエンド
フロントエンド