We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a37c2d commit 48bd503Copy full SHA for 48bd503
packages/gotrue/test/src/gotrue_mfa_api_test.dart
@@ -82,10 +82,11 @@ void main() {
82
test('verify', () async {
83
await client.signInWithPassword(password: password, email: email1);
84
85
- final challengeId = 'b824ca10-cc13-4250-adba-20ee6e5e7dcd';
+ // Create a challenge first
86
+ final challengeRes = await client.mfa.challenge(factorId: factorId1);
87
88
final res = await client.mfa
- .verify(factorId: factorId1, challengeId: challengeId, code: getTOTP());
89
+ .verify(factorId: factorId1, challengeId: challengeRes.id, code: getTOTP());
90
91
expect(client.currentSession?.accessToken, res.accessToken);
92
expect(client.currentUser, res.user);
0 commit comments