Hey guys Is there a way I can add a key value pair...
# javascript
z
Hey guys Is there a way I can add a key value pair to the raw_user_meta_data column of auth.users when signing in using Magic Link from Nextjs client?
s
Unfortunately you can't do this while using magic link at the moment as the code for this doesn't allow you to pass additional data since magic link uses the
signIn
method rather than the
signUp
method. You can take a look at the code and you will see it only takes a
redirectTo
https://github.com/supabase/gotrue-js/blob/master/src/GoTrueApi.ts#L211-L216
z
I see. Can you share an example of how to do it using the SignUp method?
s
You can't use Magic Link when doing
signUp
.
z
Okay. What about SignUp with Email and Password?
z
great! Thanks a lot
Just another question, I can still use magic links to sign in later on, right?
s
Yes correct
z
Awesome
Thanks!
s
So you could fake the signup with a random dummy password
z
Yeah