Prepare for the PgBouncer and IPv4 deprecations on 26th January 2024

Dart Reference v2.0

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 signInWithOtp() method again.
  • Password recovery emails can be resent by calling the resetPasswordForEmail() method again.
  • This method only resend an email or phone OTP to the user if an initial signup, email change, or phone change request was made.

final ResendResponse res = await supabase.auth.resend(
  type: OtpType.email,
  email: 'email@example.com',
);