Skip to content

Commit

Permalink
Addressing feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
pragatimodi committed May 31, 2023
1 parent 8f464b3 commit fa82293
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/auth/user-record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface MultiFactorInfoResponse {
phoneInfo?: string;
totpInfo?: TotpInfoResponse;
enrolledAt?: string;
[key: string]: unknown;
[key: string]: any;
}

export interface TotpInfoResponse {
Expand Down
18 changes: 9 additions & 9 deletions test/unit/auth/user-record.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,21 +554,21 @@ describe('MultiFactorSettings', () => {
phoneInfo: '+16505556789',
},
{
// Invalid factor.
mfaEnrollmentId: 'enrollmentId3',
displayName: 'displayName1',
enrolledAt: now.toISOString(),
totpInfo: {},
},
{
// Unsupported factor.
// Invalid factor.
mfaEnrollmentId: 'enrollmentId4',
displayName: 'Backup second factor',
enrolledAt: now.toISOString(),
secretKey: 'SECRET_KEY',
},
{
// Unsupported factor.
mfaEnrollmentId: 'enrollmentId5',
displayName: 'displayName1',
displayName: 'Backup second factor',
enrolledAt: now.toISOString(),
totpInfo: {},
secretKey: 'SECRET_KEY',
},
],
};
Expand All @@ -585,11 +585,11 @@ describe('MultiFactorSettings', () => {
phoneInfo: '+16505556789',
}),
new TotpMultiFactorInfo({
mfaEnrollmentId: 'enrollmentId5',
mfaEnrollmentId: 'enrollmentId3',
displayName: 'displayName1',
enrolledAt: now.toISOString(),
totpInfo: {},
})
}),
];

describe('constructor', () => {
Expand Down

0 comments on commit fa82293

Please sign in to comment.