https://supabase.com/ logo
Is there a way to receive the user metadata in the...
# help
j
Is there a way to receive the user metadata in the auth response?
n
Hello @joshcowan25! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
n
You can do
supabase.auth.user().user_metadata
as I recall. If you have the
Session
obj, you can do
session.user.user_metadata
.
j
Thanks! But, if I use just the sign in function, why is user_metadata empty? const { user, session, error } = await supabase.auth.signIn({ email: 'example@email.com', password: 'example-password', })
n
Can you check if it exists in that column in the
auth.users
table?
2 Views