yukyu30 / harmony_reader

0 stars 0 forks source link

初期技術 #3

Open yukyu30 opened 8 months ago

yukyu30 commented 8 months ago

バックエンド

フロントエンド

yukyu30 commented 7 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