Skip to content

Commit fa82293

Browse files
committed
Addressing feedback
1 parent 8f464b3 commit fa82293

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/auth/user-record.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface MultiFactorInfoResponse {
4949
phoneInfo?: string;
5050
totpInfo?: TotpInfoResponse;
5151
enrolledAt?: string;
52-
[key: string]: unknown;
52+
[key: string]: any;
5353
}
5454

5555
export interface TotpInfoResponse {

test/unit/auth/user-record.spec.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -554,21 +554,21 @@ describe('MultiFactorSettings', () => {
554554
phoneInfo: '+16505556789',
555555
},
556556
{
557-
// Invalid factor.
558557
mfaEnrollmentId: 'enrollmentId3',
558+
displayName: 'displayName1',
559+
enrolledAt: now.toISOString(),
560+
totpInfo: {},
559561
},
560562
{
561-
// Unsupported factor.
563+
// Invalid factor.
562564
mfaEnrollmentId: 'enrollmentId4',
563-
displayName: 'Backup second factor',
564-
enrolledAt: now.toISOString(),
565-
secretKey: 'SECRET_KEY',
566565
},
567566
{
567+
// Unsupported factor.
568568
mfaEnrollmentId: 'enrollmentId5',
569-
displayName: 'displayName1',
569+
displayName: 'Backup second factor',
570570
enrolledAt: now.toISOString(),
571-
totpInfo: {},
571+
secretKey: 'SECRET_KEY',
572572
},
573573
],
574574
};
@@ -585,11 +585,11 @@ describe('MultiFactorSettings', () => {
585585
phoneInfo: '+16505556789',
586586
}),
587587
new TotpMultiFactorInfo({
588-
mfaEnrollmentId: 'enrollmentId5',
588+
mfaEnrollmentId: 'enrollmentId3',
589589
displayName: 'displayName1',
590590
enrolledAt: now.toISOString(),
591591
totpInfo: {},
592-
})
592+
}),
593593
];
594594

595595
describe('constructor', () => {

0 commit comments

Comments
 (0)