@@ -85,8 +85,8 @@ void main() {
8585 // Create a challenge first
8686 final challengeRes = await client.mfa.challenge (factorId: factorId1);
8787
88- final res = await client.mfa
89- . verify ( factorId: factorId1, challengeId: challengeRes.id, code: getTOTP ());
88+ final res = await client.mfa. verify (
89+ factorId: factorId1, challengeId: challengeRes.id, code: getTOTP ());
9090
9191 expect (client.currentSession? .accessToken, res.accessToken);
9292 expect (client.currentUser, res.user);
@@ -155,20 +155,20 @@ void main() {
155155
156156 // Should have 1 phone factor (unverified) and 0 verified phone factors
157157 expect (listRes.all.length, greaterThanOrEqualTo (1 ));
158-
158+
159159 // Find the phone factor we just enrolled
160160 final phoneFactor = listRes.all.firstWhere (
161161 (factor) => factor.factorType == FactorType .phone,
162162 );
163-
163+
164164 expect (phoneFactor.id, enrollRes.id);
165165 expect (phoneFactor.factorType, FactorType .phone);
166166 expect (phoneFactor.friendlyName, 'TestPhone' );
167167 expect (phoneFactor.status, FactorStatus .unverified);
168-
168+
169169 // Verified phone factors should be empty since we haven't verified yet
170170 expect (listRes.phone.length, 0 );
171-
171+
172172 // But the factor should appear in the all list
173173 expect (listRes.all.any ((f) => f.factorType == FactorType .phone), true );
174174 });
0 commit comments