© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•13mo ago•
2 replies
LukasV

Converting anonymous user into permanent user using Google or apple sign in.

Hello,

My goal with anonymous sign in is to create anon user "uid123" during app onboarding, collect some onboarding data, then at the end I want them to complete sign in with either google or apple, which would convert the "uid123" into a perm user, instead of creating another user in my database with different id.

Is something like this possible?

There is a small section in the docs that mentions this method:
const { data, error } = await supabase.auth.linkIdentity({ provider: 'google' })
const { data, error } = await supabase.auth.linkIdentity({ provider: 'google' })


But how does it work, do I call this method after user signs in with google or apple, where would I pass my anon id as an argument with this method, and would it keep my anon user id or the newly created user id?
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

converting anonymous accounts to permanent ones
SupabaseSSupabase / help-and-questions
3w ago
Anonymous Sign-in
SupabaseSSupabase / help-and-questions
3y ago
Apple Sign In
SupabaseSSupabase / help-and-questions
8mo ago
Apple sign-in issue
SupabaseSSupabase / help-and-questions
3mo ago