Skip to content

Commit

Permalink
feat: add recovery-code-sent-handle event for login with email otp
Browse files Browse the repository at this point in the history
  • Loading branch information
sherzod-bakhodirov committed Oct 23, 2024
1 parent 00d330d commit 19b27a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@magic-sdk/types/src/modules/auth-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export enum LoginWithEmailOTPEventOnReceived {
InvalidMfaOtp = 'invalid-mfa-otp',
ExpiredEmailOtp = 'expired-email-otp',
MfaSentHandle = 'mfa-sent-handle',
RecoveryCodeSentHandle = 'recovery-code-sent-handle',
InvalidRecoveryCode = 'invalid-recovery-code',
}

Expand Down Expand Up @@ -281,6 +282,7 @@ export type LoginWithEmailOTPEventHandlers = {
[LoginWithEmailOTPEventOnReceived.InvalidMfaOtp]: () => void;
[LoginWithEmailOTPEventOnReceived.ExpiredEmailOtp]: () => void;
[LoginWithEmailOTPEventOnReceived.MfaSentHandle]: () => void;
[LoginWithEmailOTPEventOnReceived.RecoveryCodeSentHandle]: () => void;
[LoginWithEmailOTPEventOnReceived.InvalidRecoveryCode]: () => void;
[AuthEventOnReceived.IDTokenCreated]: (idToken: string) => void;
[WalletEventOnReceived.WalletInfoFetched]: () => void;
Expand Down

0 comments on commit 19b27a0

Please sign in to comment.