Skip to content

Commit 5b84d46

Browse files
committed
fix: remove broadcastSession from constructor
1 parent c618526 commit 5b84d46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/gotrue/lib/src/gotrue_client.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ part 'gotrue_mfa_api.dart';
3131
///
3232
/// [asyncStorage] local storage to store pkce code verifiers. Required when using the pkce flow.
3333
///
34-
/// [broadcastSession] whether to broadcast session changes to other tabs on web. Defaults to true.
35-
///
3634
/// Set [flowType] to [AuthFlowType.implicit] to perform old implicit auth flow.
3735
/// {@endtemplate}
3836
class GoTrueClient {
@@ -102,7 +100,6 @@ class GoTrueClient {
102100
Client? httpClient,
103101
GotrueAsyncStorage? asyncStorage,
104102
AuthFlowType flowType = AuthFlowType.pkce,
105-
bool broadcastSession = true,
106103
}) : _url = url ?? Constants.defaultGotrueUrl,
107104
_headers = headers ?? {},
108105
_httpClient = httpClient,

packages/gotrue/lib/src/types/auth_state.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import 'package:gotrue/src/types/session.dart';
44
class AuthState {
55
final AuthChangeEvent event;
66
final Session? session;
7+
8+
/// Whether this state was broadcasted via `html.ChannelBroadcast` on web from
9+
/// another tab or window.
710
final bool fromBroadcast;
811

912
const AuthState(this.event, this.session, {this.fromBroadcast = false});

0 commit comments

Comments
 (0)