Skip to content

Commit

Permalink
fix: Exception thrown before redirecting on web (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbellens committed Oct 13, 2023
1 parent 4854a11 commit 7c80304
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/flutter_example/lib/openid_browser.dart
@@ -1,3 +1,5 @@
import 'dart:async';

import 'package:openid_client/openid_client.dart';
import 'package:openid_client/openid_client_browser.dart' as browser;

Expand All @@ -7,7 +9,7 @@ Future<Credential> authenticate(Client client,

authenticator.authorize();

throw Exception('Will never reach here');
return Completer<Credential>().future;
}

Future<Credential?> getRedirectResult(Client client,
Expand Down

0 comments on commit 7c80304

Please sign in to comment.