Skip to content

Commit

Permalink
Addressing feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
pragatimodi committed Jun 2, 2023
1 parent ae023fc commit 998afeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/auth/user-record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ export abstract class MultiFactorInfo {
multiFactorInfo = new PhoneMultiFactorInfo(response);
} else if (response.totpInfo !== undefined) {
multiFactorInfo = new TotpMultiFactorInfo(response);
} else {
// Ignore the other SDK unsupported MFA factors to prevent blocking developers using the current SDK.
}
} catch (e) {
// Ignore error.
Expand Down Expand Up @@ -237,6 +239,7 @@ export class PhoneMultiFactorInfo extends MultiFactorInfo {
phoneNumber: this.phoneNumber,
});
}

/**
* Returns the factor ID based on the response provided.
*
Expand Down

0 comments on commit 998afeb

Please sign in to comment.