Send a password reauthentication nonce
Sends a reauthentication OTP to the user's email or phone number. Requires the user to be signed-in.
- This method is used together with
updateUser()
when a user's password needs to be updated. - This method will send a nonce to the user's email. If the user doesn't have a confirmed email address, the method will send the nonce to the user's confirmed phone number instead.
const { data, error } = await supabase.auth.reauthenticate()