SendOtpLoginVerificationCodeFunction typedef

SendOtpLoginVerificationCodeFunction = FutureOr<void> Function(Session session, {required String email, required UuidValue otpLoginRequestId, required Transaction? transaction, required String verificationCode})

Function for sending out the one-time passwords for passwordless logins.

Called for both registered and unregistered email addresses. In the latter case, verifying the code lets the user create a new account.

Implementation

typedef SendOtpLoginVerificationCodeFunction =
    FutureOr<void> Function(
      Session session, {
      required String email,
      required UuidValue otpLoginRequestId,

      /// The one-time password generated for this login request.
      required String verificationCode,
      required Transaction? transaction,
    });