@@ -312,7 +312,7 @@ describe('Session', () => {
312
312
const isAuthorized = session . checkAuthorization ( {
313
313
permission : 'org:sys_profile:delete' ,
314
314
__experimental_reverification : {
315
- level : 'multiFactor ' ,
315
+ level : 'multi_factor ' ,
316
316
afterMinutes : 10 ,
317
317
} ,
318
318
} ) ;
@@ -339,7 +339,7 @@ describe('Session', () => {
339
339
const isAuthorized = session . checkAuthorization ( {
340
340
permission : 'org:sys_profile:delete' ,
341
341
__experimental_reverification : {
342
- level : 'multiFactor ' ,
342
+ level : 'multi_factor ' ,
343
343
afterMinutes : 10 ,
344
344
} ,
345
345
} ) ;
@@ -363,7 +363,7 @@ describe('Session', () => {
363
363
364
364
const isAuthorized = session . checkAuthorization ( {
365
365
__experimental_reverification : {
366
- level : 'multiFactor ' ,
366
+ level : 'multi_factor ' ,
367
367
afterMinutes : 10 ,
368
368
} ,
369
369
} ) ;
@@ -387,7 +387,7 @@ describe('Session', () => {
387
387
388
388
const isAuthorized = session . checkAuthorization ( {
389
389
__experimental_reverification : {
390
- level : 'multiFactor ' ,
390
+ level : 'multi_factor ' ,
391
391
afterMinutes : 10 ,
392
392
} ,
393
393
} ) ;
@@ -411,7 +411,7 @@ describe('Session', () => {
411
411
412
412
const isAuthorized = session . checkAuthorization ( {
413
413
__experimental_reverification : {
414
- level : 'multiFactor ' ,
414
+ level : 'multi_factor ' ,
415
415
afterMinutes : 10 ,
416
416
} ,
417
417
} ) ;
@@ -435,7 +435,7 @@ describe('Session', () => {
435
435
436
436
const isAuthorized = session . checkAuthorization ( {
437
437
__experimental_reverification : {
438
- level : 'multiFactor ' ,
438
+ level : 'multi_factor ' ,
439
439
afterMinutes : 10 ,
440
440
} ,
441
441
} ) ;
@@ -459,7 +459,7 @@ describe('Session', () => {
459
459
460
460
const isAuthorized = session . checkAuthorization ( {
461
461
__experimental_reverification : {
462
- level : 'multiFactor ' ,
462
+ level : 'multi_factor ' ,
463
463
afterMinutes : 10 ,
464
464
} ,
465
465
} ) ;
@@ -503,7 +503,7 @@ describe('Session', () => {
503
503
} as SessionJSON ) ;
504
504
505
505
const isAuthorized = session . checkAuthorization ( {
506
- __experimental_reverification : 'strictMfa ' ,
506
+ __experimental_reverification : 'strict_mfa ' ,
507
507
} ) ;
508
508
509
509
expect ( isAuthorized ) . toBe ( true ) ;
@@ -525,7 +525,7 @@ describe('Session', () => {
525
525
526
526
const isAuthorized = session . checkAuthorization ( {
527
527
__experimental_reverification : {
528
- level : 'multiFactor ' ,
528
+ level : 'multi_factor ' ,
529
529
afterMinutes : 10 ,
530
530
} ,
531
531
} ) ;
@@ -549,7 +549,7 @@ describe('Session', () => {
549
549
550
550
const isAuthorized = session . checkAuthorization ( {
551
551
__experimental_reverification : {
552
- level : 'multiFactor ' ,
552
+ level : 'multi_factor ' ,
553
553
afterMinutes : 10 ,
554
554
} ,
555
555
} ) ;
@@ -645,7 +645,7 @@ describe('Session', () => {
645
645
646
646
const isAuthorized = session . checkAuthorization ( {
647
647
__experimental_reverification : {
648
- level : 'firstFactor ' ,
648
+ level : 'first_factor ' ,
649
649
afterMinutes : 10 ,
650
650
} ,
651
651
} ) ;
@@ -786,7 +786,7 @@ describe('Session', () => {
786
786
787
787
const isAuthorized = session . checkAuthorization ( {
788
788
__experimental_reverification : {
789
- level : 'firstFactor ' ,
789
+ level : 'first_factor ' ,
790
790
//@ts -expect-error
791
791
afterMinutes : '10' ,
792
792
} ,
@@ -814,15 +814,15 @@ describe('Session', () => {
814
814
815
815
const isAuthorized = session . checkAuthorization ( {
816
816
__experimental_reverification : {
817
- level : 'multiFactor ' ,
817
+ level : 'multi_factor ' ,
818
818
afterMinutes : 10 ,
819
819
} ,
820
820
} ) ;
821
821
822
822
expect ( isAuthorized ) . toBe ( false ) ;
823
823
} ) ;
824
824
825
- it ( 'first factor not enrolled should NOT be authorized for firstFactor assurance' , async ( ) => {
825
+ it ( 'first factor not enrolled should NOT be authorized for first_factor assurance' , async ( ) => {
826
826
const session = new Session ( {
827
827
status : 'active' ,
828
828
id : 'session_1' ,
@@ -838,7 +838,7 @@ describe('Session', () => {
838
838
839
839
const isAuthorized = session . checkAuthorization ( {
840
840
__experimental_reverification : {
841
- level : 'firstFactor ' ,
841
+ level : 'first_factor ' ,
842
842
afterMinutes : 10 ,
843
843
} ,
844
844
} ) ;
0 commit comments