© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
11 replies
KL

linkIdentity() with Google

In my Supa app (Swift), authentication used to be through phone number. Now, it's through Google/Apple.

I'm trying to make changes such that, for my own user (which is only phone-authenticated), I can also sign in through my Google email. It's easier that way.

I couldn't find a way to link a Google account to my user in the Supa console, so I'm trying to do it through my app by calling
linkIdentity()
linkIdentity()
when I'm already signed-in, and using
.google
.google
as the provider.

This does open Google on a web browser, but it only shows a
500
500
error and nothing more.

I already added my
/auth/v1/callback
/auth/v1/callback
URL to the authorized redirect URIs in Google Cloud, I toggled on "Allow manual linking" on Supa, and I added my app's URL in the "Site URL" and "Redirect URLs" fields on Supa.

Still getting 500 with zero additional info. Am I doing something wrong? How can I get this working?

Thanks in advance!
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Working example for `linkIdentity`
SupabaseSSupabase / help-and-questions
6mo ago
[Swift] Sign In With Apple, anon users, & linkIdentity
SupabaseSSupabase / help-and-questions
13mo ago
Log in with Google
SupabaseSSupabase / help-and-questions
4mo ago
google auth with expo
SupabaseSSupabase / help-and-questions
3y ago