Prerequisites
You’ll need:- A Supabase project
- Your Supabase Project URL + Anon/Public key (used to connect Rork ↔ Supabase)
- Access to:
- Google Cloud Console (for Google OAuth Client ID + Secret)
- Apple Developer account (for Sign in with Apple setup)
Step 1 – Connect Rork to Supabase
- In Supabase, copy:
- Project URL
- Public anon key
- In Rork, prompt something like:
- “Connect to Supabase”
- Then provide the Project URL + anon key when asked
Step 2 – Enable Google Sign-In in Supabase
- Go to Supabase → Authentication → Sign-in / Providers
- Find Google and enable it
Create Google OAuth credentials (Client ID + Secret)
- Go to Google Cloud Console
- Create a new OAuth client
- Choose “Web application.”
- Create it, then copy:
- Client ID
- Client Secret
Paste credentials into Supabase + add redirect URL
- Paste Client ID + Client Secret into the Google provider settings in Supabase
- Copy the Callback/Redirect URL from Supabase
- Back in Google Cloud Console (edit your OAuth client):
- Add that URL to Authorized redirect URIs. Step 3 — Add the Sign-In Screen in Rork (with Google callback)
- “Add a sign-in page before the user accesses the app.”
- Then include your callback URL under a label like:
Google: <SUPABASE_CALLBACK_URL>
Step 4 — Enable Apple Sign-In in Supabase + Apple Developer
- In Supabase → Auth providers, enable Apple
Create an Apple Key (Sign in with Apple)
In Apple Developer:- Go to Identifiers (you’ll be working around your app + Sign in with Apple capability)
- Go to Keys
- Add Key
- Enable/configure Sign in with Apple
- Select your app, save/continue
- Register the key, then download it and save it
Ensure your App ID has “Sign in with Apple” enabled
Still in Apple Developer:- Go to Identifiers → your App ID
- Enable Sign in with Apple
- Save and confirm capability changes
Add Bundle ID to Supabase Apple Provider
- In Apple Developer, go to your app info and copy your Bundle ID
- In Supabase → Apple provider, paste the Bundle ID as the Client ID
- Save
Step 5 — Final Rork Prompt: Add Google + Apple OAuth
Now that both providers are configured in Supabase, prompt Rork to add them. Use a prompt like:- “Add Google and Apple OAuth using Supabase.”
- Include both callback URLs in the prompt (Google + Apple)
Step 6 — Test + Fix Common Issues
Issue A: Google opens Safari and fails to connect
If you see something like:- “Safari can’t open the page because it cannot connect to the server…”
- Enable new users to sign up in the Supabase Auth settings
Issue B: Apple opens Safari and says “missing OAuth secret”
If Apple sign-in routes through a browser, and you get:- “missing OAuth secret”
Prompt you can use
“Redo Apple sign-in as native only. Do not use a web browser for Apple sign-in.”After this, Apple Sign-In should appear in the native Apple UI (not Safari).
Recommended Prompt Templates (Copy/Paste)
1) Add sign-in screen + Google
Add a sign-in page before the user accesses the app.
Google:<SUPABASE_GOOGLE_CALLBACK_URL>
2) Add Google + Apple OAuth using Supabase
Add Google and Apple OAuth using Supabase.
Google:<SUPABASE_GOOGLE_CALLBACK_URL>
Apple:<SUPABASE_APPLE_CALLBACK_URL>
3) Fix Apple to be native-only
Redo Apple sign-in as native only. Do not call the web browser for Apple sign-in.