auth
auth copied to clipboard
supabase.auth.linkIdentity does not return raw_user_meta_data
Bug report
- [x] I confirm this is a bug with Supabase, not with my own application.
- [x] I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
When calling supabase.auth.linkIdentity
using the JS client, it does not return and store the raw_user_meta_data
that you would normally get when using supabase.auth.signInWithOAuth
:
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Sign in an anonymous user
- Try to link identity with supabase.auth.linkIdentity
- Check the raw_user_meta_data in auth.users
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
- Version of supabase-js: 2.44.2
- Version of Node.js: 20.15.1
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.