© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
PlayWolf

Provider Signup with custom user data

Hey there! I am trying to implement a way for my users to authenticate with google, discord, etc. My app uses usernames to display, which I decided to store in the users themselves (in the user_meta_data). When signing up with Email and Password, this is not a problem, as I can pass the additional data (the username which was entered), so it automatically gets stored.

Now to my problem: When a user tries to sign up with google, I cannot send the username with it. This is because for OAuth, we have to use
client.auth.signIn
client.auth.signIn
instead of
client.auth.signUp
client.auth.signUp
(see https://github.com/supabase/supabase/discussions/1226).

The problem is
client.auth.signIn
client.auth.signIn
does not accept any data to be passed along. And even if it did, I do not want to override the username if the user was already registered before.

How would I go about this problem?
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

user signup
SupabaseSSupabase / help-and-questions
4y ago
How to add data while user signup
SupabaseSSupabase / help-and-questions
4y ago
Custom OTP Provider
SupabaseSSupabase / help-and-questions
3y ago
Implementing custom oauth2 provider with Supabase 🔥
SupabaseSSupabase / help-and-questions
7mo ago