© 2026 Hedgehog Software, LLC

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

Database error saving new user - Google Provider

Hi guys,

New to supabase here. I am currently trying to implement Google OAuth on iOS through supabase and react-native (expo).

Currently encoutering an error "Database error saving new user", when running:

 const { data, error } = await supabase.auth.signInWithIdToken({
                    provider: 'google',
                    token: userInfo.data.idToken,
                })
 const { data, error } = await supabase.auth.signInWithIdToken({
                    provider: 'google',
                    token: userInfo.data.idToken,
                })


The userInfo.data.idToken is valid and confirmed by jwt decoder.
image.png
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

Database error saving new user
SupabaseSSupabase / help-and-questions
4y ago
Database error saving new user
SupabaseSSupabase / help-and-questions
6mo ago
Database error saving new user
SupabaseSSupabase / help-and-questions
6mo ago
OAuth Error: "Database error saving new user" with Google Sign-In
SupabaseSSupabase / help-and-questions
6mo ago