Skip to content

Commit

Permalink
feat: add RecoveryCodeSuccess event for login with email otp
Browse files Browse the repository at this point in the history
  • Loading branch information
sherzod-bakhodirov committed Oct 24, 2024
1 parent f377ca1 commit b5f797e
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 @@ -175,6 +175,7 @@ export enum LoginWithEmailOTPEventOnReceived {
MfaSentHandle = 'mfa-sent-handle',
RecoveryCodeSentHandle = 'recovery-code-sent-handle',
InvalidRecoveryCode = 'invalid-recovery-code',
RecoveryCodeSuccess = 'recovery-code-success',
}

export enum DeviceVerificationEventEmit {
Expand Down Expand Up @@ -284,6 +285,7 @@ export type LoginWithEmailOTPEventHandlers = {
[LoginWithEmailOTPEventOnReceived.MfaSentHandle]: () => void;
[LoginWithEmailOTPEventOnReceived.RecoveryCodeSentHandle]: () => void;
[LoginWithEmailOTPEventOnReceived.InvalidRecoveryCode]: () => void;
[LoginWithEmailOTPEventOnReceived.RecoveryCodeSuccess]: () => void;
[AuthEventOnReceived.IDTokenCreated]: (idToken: string) => void;
[WalletEventOnReceived.WalletInfoFetched]: () => void;

Expand Down

0 comments on commit b5f797e

Please sign in to comment.