Skip to content
Skip to content
Goodspeed

Connect Supabase to your Goodspeed app

Postgres database, authentication, realtime, and storage. The backend layer every generated app runs on. Goodspeed wires Supabase into every app that needs it at generation time, so you start with a working integration, not a blank config and a documentation tab.

WHAT GETS WIRED IN

Built into every Supabase build

Every app Goodspeed generates with Supabase includes these wired integrations from the first build. No manual setup required.

ItemDescriptionStrength
createClient() initialized with PKCE auth flow and platform-split token storage (SecureStore on native, localStorage on web)createClient() initialized with PKCE auth flow and platform-split token storage (SecureStore on native, localStorage on web)01
Auth providers wired: email/password, magic link, Apple Sign-In, Google OAuth, Twitter, LinkedIn, and MicrosoftAuth providers wired: email/password, magic link, Apple Sign-In, Google OAuth, Twitter, LinkedIn, and Microsoft02
push_tokens table upserted on notification registration so every device token is persisted per userpush_tokens table upserted on notification registration so every device token is persisted per user03
Row-level security policies enforced per tenant on all generated user data tablesRow-level security policies enforced per tenant on all generated user data tables04
Supabase Edge Functions deployed for job-worker, send-push, send-email, webhook-receiver, and data-exportSupabase Edge Functions deployed for job-worker, send-push, send-email, webhook-receiver, and data-export05
Real-time subscriptions via useChannelSubscription hook for live feeds, chat, and leaderboardsReal-time subscriptions via useChannelSubscription hook for live feeds, chat, and leaderboards06

Source: gas-template repository · database/auth/storage

REAL GENERATED CODE

A snippet from a Supabase integration the pipeline ships

This pattern comes directly from the gas-template codebase. The studio generates Supabase integration code like this for every app that includes it, not a placeholder you have to fill in yourself.

  1. PKCE client init

    // lib/supabase.ts
    const supabaseUrl = gasConfig.backend.supabase.url;
    const supabaseAnonKey = gasConfig.backend.supabase.anonKey;
    export const supabase = createClient(supabaseUrl, supabaseAnonKey, {
      auth: {
        storage: Platform.OS === 'web' ? WebStorageAdapter : ExpoSecureStoreAdapter,
        autoRefreshToken: true,
        persistSession: true,
        flowType: 'pkce',
      },
    });
GDaily Allergens

Today's log

Gluten
Tree nuts
Shellfish
Dairy
HomeScanLogProfile

START WITH SUPABASE

Your Supabase integration, generated