Samurai-meet

認証クライアント実装(Issue #1 / PR4)

最終更新: 2026-08-24

Issue #1「ユーザー登録・ログイン保持」に対するExpoクライアント側の実装メモです。HTTPの正式な契約は backend/API_SPEC.md、認証全体の設計は auth.md を参照してください。

実装範囲

Expo Goでの確認

cd frontend
bun install --frozen-lockfile
bun run typecheck
bun run lint
bun test

Expo Goでは Linking.createURL('auth') が exp://<host>/--/auth を返します。開発環境でだけこのredirectをバックエンドの許可リストに登録し、本番では固定scheme samuraimeet://auth またはDevelopment Buildを使います。

認証handoffのURL parser、Secure Storageへ保存するsessionの形、Passkey URL fragmentは frontend/tests/auth-contract.test.ts で検証します。Access Tokenやpre-auth tokenをログへ出さないでください。