What to build
Wire SuperTokens into platform-api and web so a user can sign in with GitHub or Google, land on a "you are signed in as X" page, and sign out cleanly. Email+password is not in scope per ADR-0008.
platform-api integrates SuperTokens (hosted core during MVP) as the auth backend, exposes session endpoints, persists user records in platform.users.
- After a successful OAuth flow,
platform-api issues the JWT format defined in slice 1; the same token works for downstream services.
web wires SuperTokens' Next.js helpers, shows a sign-in page with two buttons (GitHub, Google), and a profile page after sign-in.
- Sign-out clears the session cookie and the JWT.
- The user record stores: external provider, external user id, display name, avatar URL, primary email.
Acceptance criteria
Blocked by
What to build
Wire SuperTokens into
platform-apiandwebso a user can sign in with GitHub or Google, land on a "you are signed in as X" page, and sign out cleanly. Email+password is not in scope per ADR-0008.platform-apiintegrates SuperTokens (hosted core during MVP) as the auth backend, exposes session endpoints, persists user records inplatform.users.platform-apiissues the JWT format defined in slice 1; the same token works for downstream services.webwires SuperTokens' Next.js helpers, shows a sign-in page with two buttons (GitHub, Google), and a profile page after sign-in.Acceptance criteria
platform.usersis created on first sign-in only; subsequent sign-ins update the existing row.Blocked by