Skip to content

Commit eae712d

Browse files
authored
fix(auth): skip navigator lock when persistSession is false (#1928)
1 parent 139a745 commit eae712d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/auth-js/src/GoTrueClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ export default class GoTrueClient {
328328

329329
if (settings.lock) {
330330
this.lock = settings.lock
331-
} else if (isBrowser() && globalThis?.navigator?.locks) {
331+
} else if (this.persistSession && isBrowser() && globalThis?.navigator?.locks) {
332332
this.lock = navigatorLock
333333
} else {
334334
this.lock = lockNoOp

0 commit comments

Comments
 (0)