-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
supabase.auth.linkIdentity does not return raw_user_meta_data #1708
Comments
My apologies... commenting again, because my previous one was from the test account. How are you getting the screenshot output? I tried this with hosted Supabase, looked in the auth.users table in the dashboard, and the user metadata was there for the user. I also console.log'd the returned |
@j4w8n I'm getting it in the authentication section, and then looking for my user: Then I click on view user info: It's also empty in the actual auth.users table: I've tried both local dev and in the cloud dashboard, seems like the raw_user_meta_data is empty in both. |
I'm sorry. I misunderstood what you were saying. I now understand that you mean the metadata that comes back from the OAuth provider. After converting the user, if I logout and log back in with OAuth, then the data is there, but it would be nice if that data came back during the conversion. Based on what I see in the
Versus an OAuth login
I tried to work around it by adding something like |
@j4w8n Yeah that's right, the metadata doesn't come back during the conversion. As for the redirectTo, my understanding is that it only redirects after the authentication, so I just use that to redirect to a specific page within my app. |
I just came here because I ran into the same issue. Any fix or workaround would be appreciated. |
Same issue here. Would appreciate a workaround or a fix. |
Bug report
Describe the bug
When calling
supabase.auth.linkIdentity
using the JS client, it does not return and store theraw_user_meta_data
that you would normally get when usingsupabase.auth.signInWithOAuth
:To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
It should return the metadata just like an oauth sign in.
Screenshots
When using supabase.auth.signInWithOAuth, it returns the raw_user_meta_data:
When using supabase.auth.linkIdentity, it does not return it:
System information
Additional context
It would be best if it can be returned as I want my postgres trigger to automatically add the full_name and avatar_url to my public.profiles table once the user's anonymous account has been converted to a permanent account once they've signed in.
The text was updated successfully, but these errors were encountered: