Kotlin: Resend an OTP
- Resends a signup confirmation, email change or phone change email to the user.
- Passwordless sign-ins can be resent by calling the
sendOtpTo()
method again.
- Password recovery emails can be resent by calling the
sendRecoveryEmail()
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.
Examples
Resend an email signup confirmation
supabase.gotrue.resendEmail(OtpType.Email.SIGNUP, "example@email.com")
Resend a phone signup confirmation
supabase.gotrue.resendPhone(OtpType.Phone.SMS, "1234567890")
Resend email change email
supabase.gotrue.resendEmail(OtpType.Email.EMAIL_CHANGE, "example@email.com")
Resend phone change OTP
supabase.gotrue.resendPhone(OtpType.Phone.PHONE_CHANGE, "1234567890")