Skip to content

Commit dd698d6

Browse files
committed
fix: properly copyWith
1 parent 0ae2b71 commit dd698d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/gotrue/lib/src/gotrue_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class GoTrueClient {
126126

127127
final gotrueUrl = url ?? Constants.defaultGotrueUrl;
128128
_log.config(
129-
'Initialize GoTrueClient v$version with url: $_url, autoRefreshToken: $_autoRefreshToken, flowType: $_flowType, tickDuration: ${Constants.autoRefreshTickDuration}, tickThreshold: ${Constants.autoRefreshTickThreshold}');
129+
'Initialize GoTrueClient v$version with url: $_url, persistSession: $_persistSession, _storageKey: $storageKey, autoRefreshToken: $_autoRefreshToken, flowType: $_flowType, tickDuration: ${Constants.autoRefreshTickDuration}, tickThreshold: ${Constants.autoRefreshTickThreshold}');
130130
_log.finest('Initialize with headers: $_headers');
131131
admin = GoTrueAdminApi(
132132
gotrueUrl,

packages/supabase_flutter/lib/src/flutter_go_true_client_options.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ class FlutterAuthClientOptions extends AuthClientOptions {
3737
localStorage: localStorage ?? this.localStorage,
3838
// ignore: deprecated_member_use
3939
pkceAsyncStorage: pkceAsyncStorage ?? this.pkceAsyncStorage,
40-
asyncStorage: asyncStorage,
41-
storageKey: storageKey,
42-
persistSession: persistSession,
40+
asyncStorage: asyncStorage ?? this.asyncStorage,
41+
storageKey: storageKey ?? this.storageKey,
42+
persistSession: persistSession ?? this.persistSession,
4343
detectSessionInUri: detectSessionInUri ?? this.detectSessionInUri,
4444
);
4545
}

0 commit comments

Comments
 (0)