Skip to content

Commit

Permalink
fix: update verify recovery code
Browse files Browse the repository at this point in the history
  • Loading branch information
sherzod-bakhodirov committed Oct 23, 2024
1 parent 0eb553a commit f377ca1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/@magic-sdk/provider/src/modules/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ export class AuthModule extends BaseModule {
this.createIntermediaryEvent(LoginWithEmailOTPEventEmit.LostDevice, requestPayload.id as string)();
});
handle.on(LoginWithEmailOTPEventEmit.VerifyRecoveryCode, (recoveryCode: string) => {
this.createIntermediaryEvent(LoginWithEmailOTPEventEmit.LostDevice, requestPayload.id as string)(recoveryCode);
this.createIntermediaryEvent(
LoginWithEmailOTPEventEmit.VerifyRecoveryCode,
requestPayload.id as string,
)(recoveryCode);
});
handle.on(LoginWithEmailOTPEventEmit.Cancel, () => {
this.createIntermediaryEvent(LoginWithEmailOTPEventEmit.Cancel, requestPayload.id as any)();
Expand Down

0 comments on commit f377ca1

Please sign in to comment.