Resend an OTP
Resends an existing signup confirmation email, email change email, SMS OTP or phone change OTP.
- Resends a signup confirmation, email change or phone change email to the user.
- Passwordless sign-ins can be resent by calling the
signInWithOtp()
method again. - Password recovery emails can be resent by calling the
resetPassswordForEmail()
method again. - This method will only resend an email or phone OTP to the user if there was an initial signup, email change or phone change request being made.
Parameters
- credentialsREQUIREDResendParams
const { data, error } = await supabase.auth.resend({
type: 'signup',
email: 'email@example.com'
})