Skip to content
Discussion options

You must be logged in to vote

@nicokempe @ssunil3232 @chrhi

After sending the OTP with supabase.auth.reauthenticate you need to update the password like this:

const { data: result, error } = await supabase.auth.updateUser({
  password: theNewPassword,
  nonce: theOtpFromTheEmail,
});

Hope this helps :)

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Bryson14
Comment options

Answer selected by nicokempe
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants