@@ -112,6 +112,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
112112 let email , phoneNumber ;
113113 before ( async ( ) => {
114114 await setupST ( {
115+ ...appConfig ,
115116 mfaInfo : {
116117 allowedToSetup : [ "totp" ] ,
117118 }
@@ -140,6 +141,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
140141
141142 it ( "should respect redirectToPath" , async ( ) => {
142143 await setupST ( {
144+ ...appConfig ,
143145 mfaInfo : {
144146 requirements : [ ] ,
145147 alreadySetup : [ factorId ] ,
@@ -165,6 +167,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
165167
166168 it ( "should show access denied if the app navigates to the setup page but the user it is not allowed to set up the factor" , async ( ) => {
167169 await setupST ( {
170+ ...appConfig ,
168171 mfaInfo : {
169172 requirements : [ ] ,
170173 alreadySetup : [ factorId ] ,
@@ -184,6 +187,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
184187
185188 it ( "should show access denied if setup is not allowed but the factor is not set up" , async ( ) => {
186189 await setupST ( {
190+ ...appConfig ,
187191 mfaInfo : {
188192 requirements : [ factorId ] ,
189193 alreadySetup : [ ] ,
@@ -202,6 +206,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
202206
203207 it ( "should show loading screen" , async ( ) => {
204208 await setupST ( {
209+ ...appConfig ,
205210 mfaInfo : {
206211 requirements : [ factorId ] ,
207212 alreadySetup : [ factorId ] ,
@@ -235,6 +240,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
235240
236241 it ( "should show blocked screen after too many retries" , async ( ) => {
237242 await setupST ( {
243+ ...appConfig ,
238244 mfaInfo : {
239245 requirements : [ factorId ] ,
240246 alreadySetup : [ factorId ] ,
@@ -251,6 +257,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
251257
252258 it ( "should handle mfa info api failures gracefully" , async ( ) => {
253259 await setupST ( {
260+ ...appConfig ,
254261 mfaInfo : {
255262 requirements : [ factorId ] ,
256263 alreadySetup : [ factorId ] ,
@@ -292,6 +299,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
292299
293300 it ( "should handle createDevice failures gracefully" , async ( ) => {
294301 await setupST ( {
302+ ...appConfig ,
295303 mfaInfo : {
296304 requirements : [ factorId ] ,
297305 alreadySetup : [ ] ,
@@ -328,6 +336,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
328336
329337 it ( "should redirect back if visited after sign in without stepUp param" , async ( ) => {
330338 await setupST ( {
339+ ...appConfig ,
331340 mfaInfo : {
332341 requirements : [ ] ,
333342 alreadySetup : [ factorId ] ,
@@ -346,6 +355,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
346355
347356 it ( "should show a link redirecting back if visited after sign in - force setup" , async ( ) => {
348357 await setupST ( {
358+ ...appConfig ,
349359 mfaInfo : {
350360 requirements : [ ] ,
351361 alreadySetup : [ factorId ] ,
@@ -366,6 +376,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
366376
367377 it ( "should show a link redirecting back if visited after sign in - setup in stepUp" , async ( ) => {
368378 await setupST ( {
379+ ...appConfig ,
369380 mfaInfo : {
370381 requirements : [ ] ,
371382 alreadySetup : [ ] ,
@@ -386,6 +397,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
386397
387398 it ( "should show a link redirecting back if visited after sign in - verification in stepUp" , async ( ) => {
388399 await setupST ( {
400+ ...appConfig ,
389401 mfaInfo : {
390402 requirements : [ ] ,
391403 alreadySetup : [ factorId ] ,
@@ -406,6 +418,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
406418
407419 it ( "should show a back button redirecting to the chooser screen if other options are available during sign in - setup" , async ( ) => {
408420 await setupST ( {
421+ ...appConfig ,
409422 mfaInfo : {
410423 requirements : [ { oneOf : [ factorId , "otp-email" ] } ] ,
411424 alreadySetup : [ "otp-email" ] ,
@@ -427,6 +440,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
427440
428441 it ( "should show a back button redirecting to the chooser screen if other options are available during sign in - verification" , async ( ) => {
429442 await setupST ( {
443+ ...appConfig ,
430444 mfaInfo : {
431445 requirements : [ { oneOf : [ factorId , "otp-email" ] } ] ,
432446 alreadySetup : [ factorId , "otp-email" ] ,
@@ -447,6 +461,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
447461
448462 it ( "should show a logout link - setup" , async ( ) => {
449463 await setupST ( {
464+ ...appConfig ,
450465 mfaInfo : {
451466 requirements : [ factorId ] ,
452467 alreadySetup : [ ] ,
@@ -468,6 +483,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
468483
469484 it ( "should show a logout link - verify" , async ( ) => {
470485 await setupST ( {
486+ ...appConfig ,
471487 mfaInfo : {
472488 requirements : [ factorId ] ,
473489 alreadySetup : [ factorId ] ,
0 commit comments