File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ part 'gotrue_mfa_api.dart';
31
31
///
32
32
/// [asyncStorage] local storage to store pkce code verifiers. Required when using the pkce flow.
33
33
///
34
- /// [broadcastSession] whether to broadcast session changes to other tabs on web. Defaults to true.
35
- ///
36
34
/// Set [flowType] to [AuthFlowType.implicit] to perform old implicit auth flow.
37
35
/// {@endtemplate}
38
36
class GoTrueClient {
@@ -102,7 +100,6 @@ class GoTrueClient {
102
100
Client ? httpClient,
103
101
GotrueAsyncStorage ? asyncStorage,
104
102
AuthFlowType flowType = AuthFlowType .pkce,
105
- bool broadcastSession = true ,
106
103
}) : _url = url ?? Constants .defaultGotrueUrl,
107
104
_headers = headers ?? {},
108
105
_httpClient = httpClient,
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ import 'package:gotrue/src/types/session.dart';
4
4
class AuthState {
5
5
final AuthChangeEvent event;
6
6
final Session ? session;
7
+
8
+ /// Whether this state was broadcasted via `html.ChannelBroadcast` on web from
9
+ /// another tab or window.
7
10
final bool fromBroadcast;
8
11
9
12
const AuthState (this .event, this .session, {this .fromBroadcast = false });
You can’t perform that action at this time.
0 commit comments