env.example

From the guide Supabase authentication in TypeScript: two safe ways, with code. Placeholder values only: put your own keys in environment variables, never in the code.

env.exampleEnvironment variablesRawExternal
# .env (never committed; commit a .env.example with the names only)
# Server only, except where marked. None of the server-only ones may go in a NEXT_PUBLIC_, VITE_ or PUBLIC_ variable:
# those are sent to the browser.
SUPABASE_URL=https://your-project-ref.supabase.co
SUPABASE_SECRET_KEY=sb_secret_replace_me
# 32 random bytes or more, e.g. the output of: node -e "console.log(require('crypto').randomBytes(32).toString('base64url'))"
SESSION_SECRET=replace_me_with_a_long_random_string
APP_ORIGIN=https://app.example.com
# Way 1: your OAuth app at the provider your users sign in with
OAUTH_CLIENT_ID=replace_me
OAUTH_CLIENT_SECRET=replace_me
# Way 2 only (Supabase Auth): the publishable key may be public
SUPABASE_PUBLISHABLE_KEY=sb_publishable_replace_me

Back to the guide