Skip to main content
Run any Skill in Manus
with one click

bff-auth

Stars2
Forks0
UpdatedJuly 11, 2026 at 06:40

このモノレポ(project-template-2026)の認証の唯一の実装ガイド。OAuth 2.0 authorization code + PKCE を confidential client として実装した BFF(Backend-For-Frontend)パターン(draft-ietf-oauth-browser-based-apps §6 準拠)。ブラウザには不透明・署名付きの HttpOnly セッション Cookie だけを渡し、アクセス/リフレッシュ/id トークンはサーバ側(DynamoDB)にのみ保持する。以下のいずれかのとき必ず読むこと —— (1) 認証・ログイン・ログアウト・セッション・Cookie・OIDC/OAuth/PKCE・トークンリフレッシュ・`@icasu/backend-auth`・Cognito・oidc-server-mock について質問された、(2) ログイン/ログアウト/セッション/保護ルート/認可などの認証関連機能を実装・変更・レビューする、(3) `packages/backend-auth`・`apps/frontend` の `features/auth`・`entities/session`・`apps/iac` の Cognito/CloudFront/DynamoDB セッション周りを触る、(4) 認証の設計判断(なぜ Cookie にトークンを載せないか、なぜ /auth と /api を分けるか等)や落とし穴を知りたい。

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
3 files
SKILL.md
readonly