Supabase · Account & credits
Connect Supabase
Link your own Supabase project for user sign-in and credit balances. This app can verify the connection, but it cannot create or access a project without your deployment credentials.
- 1Add your project credentials
Open your Supabase project’s Connect dialog for its URL and publishable key. Find the server secret under Settings → API Keys. Add these variables to this app’s deployment settings, then restart or redeploy it.
NEXT_PUBLIC_SUPABASE_URL=https://YOUR_PROJECT_REF.supabase.co NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=YOUR_PUBLISHABLE_KEY SUPABASE_SECRET_KEY=YOUR_SERVER_SECRET_KEY
Legacy
SUPABASE_SERVICE_ROLE_KEYis also supported. Neither server key should have aNEXT_PUBLIC_prefix. - 2Install the credit database
Run the included setup SQL in your project’s SQL Editor. It creates zero-credit wallets, credit history, ad sessions, and the read-only connection check. It contains no keys.
- 3Enable email sign-in
Enable Email under Authentication → Sign In / Providers. Add the callback below to Authentication → URL Configuration → Redirect URLs.
Your website URL + /auth/callbackSet Site URL to your website’s origin. Configure SMTP for reliable confirmation emails.
Connection checks
Read-only checks. No users are created and no credits are changed.
Use Check connection to verify setup.
Rewarded ads are configured separately with NEXT_PUBLIC_GAM_REWARDED_AD_UNIT_PATH. Without a real rewarded ad unit, earning credits stays disabled. Accounts start with 0 credits.