Skip to content

Commit

Permalink
fix: remove broadcastSession from constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Sep 16, 2024
1 parent c618526 commit 5b84d46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/gotrue/lib/src/gotrue_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ part 'gotrue_mfa_api.dart';
///
/// [asyncStorage] local storage to store pkce code verifiers. Required when using the pkce flow.
///
/// [broadcastSession] whether to broadcast session changes to other tabs on web. Defaults to true.
///
/// Set [flowType] to [AuthFlowType.implicit] to perform old implicit auth flow.
/// {@endtemplate}
class GoTrueClient {
Expand Down Expand Up @@ -102,7 +100,6 @@ class GoTrueClient {
Client? httpClient,
GotrueAsyncStorage? asyncStorage,
AuthFlowType flowType = AuthFlowType.pkce,
bool broadcastSession = true,
}) : _url = url ?? Constants.defaultGotrueUrl,
_headers = headers ?? {},
_httpClient = httpClient,
Expand Down
3 changes: 3 additions & 0 deletions packages/gotrue/lib/src/types/auth_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import 'package:gotrue/src/types/session.dart';
class AuthState {
final AuthChangeEvent event;
final Session? session;

/// Whether this state was broadcasted via `html.ChannelBroadcast` on web from
/// another tab or window.
final bool fromBroadcast;

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

0 comments on commit 5b84d46

Please sign in to comment.