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 52a84c4 commit dc6146dCopy full SHA for dc6146d
packages/gotrue/lib/src/gotrue_client.dart
@@ -495,15 +495,11 @@ class GoTrueClient {
495
496
final authResponse = AuthResponse.fromJson(response);
497
498
- if (authResponse.session == null) {
499
- throw AuthException(
500
- 'An error occurred on token verification.',
501
- );
+ if (authResponse.session != null) {
+ _saveSession(authResponse.session!);
+ _notifyAllSubscribers(AuthChangeEvent.signedIn);
502
}
503
504
- _saveSession(authResponse.session!);
505
- _notifyAllSubscribers(AuthChangeEvent.signedIn);
506
-
507
return authResponse;
508
509
0 commit comments