resendOtp method
Resends an OTP to the user's email for a specified OtpType
.
Example:
try {
await authManager.resendOtp(email: 'user@example.com', type: OtpType.signup);
print('OTP resent successfully.');
} on AuthException catch (e) {
print('Error resending OTP: \${e.message}');
}
Implementation
Future<void> resendOtp({required String email, required OtpType type}) {
return _supabaseClient.auth.resend(type: type, email: email);
}