Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
saralk committed Jun 24, 2024
1 parent 4411deb commit cb217aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ export function checkYourPhonePost(
if (supportChangeMfa()) {
if (intent === "changePhoneNumber") {
const smsMFAMethod: MfaMethod = req.session.mfaMethods.find(
(mfa) => mfa.mfaMethodType === "SMS"
(mfa) => mfa.method.mfaMethodType === "SMS"
);
if (smsMFAMethod) {
smsMFAMethod.endPoint = newPhoneNumber;
smsMFAMethod.method.endPoint = newPhoneNumber;
updateInput.mfaMethod = smsMFAMethod;
isPhoneNumberUpdated = await service.updatePhoneNumberWithMfaApi(
updateInput,
Expand Down
6 changes: 4 additions & 2 deletions src/utils/mfa/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ export type MfaMethodType = "SMS" | "AUTH_APP";
export interface MfaMethod {
mfaIdentifier: number;
priorityIdentifier: PriorityIdentifier;
mfaMethodType: MfaMethodType;
endPoint?: string;
method: {
mfaMethodType: MfaMethodType;
endPoint?: string;
}
methodVerified: boolean;
}

Expand Down

0 comments on commit cb217aa

Please sign in to comment.