Boost My AgentGet Boost OS
Supabase

Supabase starter module

Authentication

Connects browser sign-in, server sessions, and protected routes without trusting browser state alone.

Files
5
Lines
271
Languages
TypeScript

Included files

This page lists paths and purposes, not source contents.

  • src/checkout/account-model.ts

    The trusted definition of this app's account model: roles, tables, and configuration checks.

    TypeScript

    69 lines

  • src/checkout/auth-callback-route.ts

    Exchanges a Supabase PKCE callback code for session cookies and provisions the account.

    TypeScript

    68 lines

  • src/checkout/current-session.ts

    Verifies the Supabase user used by every protected page and route.

    TypeScript

    84 lines

  • src/checkout/ensure-provisioned.ts

    Ensures a verified Supabase account has exactly one app profile.

    TypeScript

    24 lines

  • src/checkout/session-logout-route.ts

    Clears this browser's Supabase session and returns the user to sign-in.

    TypeScript

    26 lines