You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Only warn if multiple clients share a storage-key
This allows use of multiple clients with different storage-keys, without the `Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.` warning appearing.
'Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.'
247
250
)
248
251
}
249
252
250
-
constsettings={ ...DEFAULT_OPTIONS, ...options}
251
-
252
253
this.logDebugMessages=!!settings.debug
253
254
if(typeofsettings.debug==='function'){
254
255
this.logger=settings.debug
255
256
}
256
257
257
258
this.persistSession=settings.persistSession
258
-
this.storageKey=settings.storageKey
259
259
this.autoRefreshToken=settings.autoRefreshToken
260
260
this.admin=newGoTrueAdminApi({
261
261
url: settings.url,
@@ -337,7 +337,8 @@ export default class GoTrueClient {
0 commit comments