Skip to content
Discussion options

You must be logged in to vote

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 acc…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@enricoschaaf
Comment options

@kiwicopple
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by awalias
Comment options

You must be logged in to vote
3 replies
@eifo
Comment options

@pichichi91
Comment options

@eifo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth All thing Supabase Auth related
5 participants