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 --cleanConfigure Supabase Dashboard
1. Set Redirect URLs
Go to Project Settings → Authentication → URL Configuration:
| Setting | Value |
|---|---|
| Site URL | myapp:// |
| Redirect URLs | myapp://auth-callback |
Replace myapp with your actual scheme from app.json.
2. Enable Email Provider
Go to Project Settings → Authentication → Sign In / Providers:
- Enable “Allow new users to sign up”
- Enable “Confirm email”
- Enable the “Email” provider
Magic Link Authentication
Magic links require SMTP setup to send emails. See Email Setup.
Once configured, users can:
- Go to Profile tab → “Login / Sign Up”
- Tap “Continue with Email”
- Enter their email address
- Check email and tap the magic link
- App opens and user is logged in
Google OAuth
1. Google Cloud Setup
- Go to Google Cloud Console
- Create a new project
- Go to APIs & Services → OAuth consent screen → Configure
- Go to Credentials → Create Credentials → OAuth 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 Authentication → Providers → Google:
- 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-id5. Restart Dev Server
After making changes to .env, restart your development server:
npx expo start6. Test
Tap “Continue with Google” in your app’s auth screen.