Skip to Content
ConfigurationSupabaseAuthentication

Authentication Setup

AppBoost supports passwordless magic link authentication and Google OAuth.

Configure Deep Linking

The app needs a custom URL scheme to handle auth redirects.

1. Set Your Scheme

In app.json, set your app’s scheme to your app name:

{ "expo": { "scheme": "myapp" } }

2. Rebuild the App

After changing the scheme:

npx expo prebuild --clean

Configure Supabase Dashboard

1. Set Redirect URLs

Go to Project SettingsAuthenticationURL Configuration:

SettingValue
Site URLmyapp://
Redirect URLsmyapp://auth-callback

Replace myapp with your actual scheme from app.json.

2. Enable Email Provider

Go to Project SettingsAuthenticationSign In / Providers:

  • Enable “Allow new users to sign up”
  • Enable “Confirm email”
  • Enable the “Email” provider

Magic links require SMTP setup to send emails. See Email Setup.

Once configured, users can:

  1. Go to Profile tab → “Login / Sign Up”
  2. Tap “Continue with Email”
  3. Enter their email address
  4. Check email and tap the magic link
  5. App opens and user is logged in

Google OAuth

1. Google Cloud Setup

  1. Go to Google Cloud Console 
  2. Create a new project
  3. Go to APIs & ServicesOAuth consent screen → Configure
  4. Go to CredentialsCreate CredentialsOAuth client ID

2. Create OAuth Clients

Create OAuth client IDs for each platform:

Web client:

  • Type: Web application
  • Add authorized redirect URI: https://your-project-id.supabase.co/auth/v1/callback

Android client:

  • Type: Android
  • Package name: your app’s package name
  • SHA-1 fingerprint: get from eas credentials

Important: You will have different SHA-1 fingerprints for testing locally and production. Make sure to add both to Google Cloud Console, and add all Client IDs to the Supabase dashboard, with the web client being the first one.

iOS client:

  • Type: iOS
  • Bundle ID: your app’s bundle identifier
  • App Store ID and Team ID (if already published on App Store)

3. Configure Supabase

Go to AuthenticationProvidersGoogle:

  • Enable Google provider
  • Add all 3 client IDs (web, Android, iOS)
  • Add the web client secret
  • Save

See Supabase Google OAuth docs  for detailed steps.

4. Add to Environment

Add the web client ID to your .env:

EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID=your-web-client-id

5. Restart Dev Server

After making changes to .env, restart your development server:

npx expo start

6. Test

Tap “Continue with Google” in your app’s auth screen.