Supabase Auth - make password optional on SignUp #460
|
This would allow people to use Magic Link Auth only if they like to, currently you have to provide some random string as a password for that. |
Replies: 3 comments 5 replies
|
Hey @enricoschaaf, we already have magic links! https://supabase.io/docs/client/auth-signin#sign-in-with-magic-link |
|
hey @enricoschaaf this functionality is already available in the js lib: // if no user exists will sign up and send magic link
let { user, error } = await supabase.auth.signIn({
email: 'someone@email.com'
})and raw http: curl -X POST 'https://jxslqjbqjxjveydildym.supabase.net/auth/v1/magiclink' \
-H "apikey: SUPABASE_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "someone@email.com"
}'if no user exists they will sign the user up and send a sign up confirmation email, you can also skip confirmation emails by disabling them from the dashboard: This will confirm the user and send them a magic link immediately (although the confirmation email link will also return an access token when clicked by the user, so the functionality is similar) let me know if any issues! |
|
Ah, this makes so much sense, I wasn't aware of the fact that if you sign in a user without an account the account will automatically created. Neat! Thank you both very much for this clarification. |

hey @enricoschaaf this functionality is already available in the js lib:
and raw http:
if no user exists they will sign the user up and send a sign up confirmation email, you can also skip confirmation emails by disabling them from the dashboard:
This will confirm the user and send them a magic link immediately (although the confirmation email link will also return an acc…