checkVerificationOtp method

Future<void> checkVerificationOtp({
  1. required String email,
  2. required AuthEmailOtpType type,
  3. required String code,
  4. DateTime? now,
})

Verifies and consumes an OTP without creating a session.

Invalid, expired, and locked records throw AuthFlowException with the corresponding OTP error code.

Implementation

Future<void> checkVerificationOtp({
  required String email,
  required AuthEmailOtpType type,
  required String code,
  DateTime? now,
}) async {
  await _verify(email: email, type: type, code: code, now: now);
}