mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
feat: bump to gotrue-js v2.45.0 and bring back navigatorLock
This commit is contained in:
1 parent
3a048f3aa9
commit
3dc2788d52
3 files changed
+13
-6
No files matched your search
Generated
+4
-4
@@ -39912,7 +39912,7 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@headlessui/react": "^1.7.14",
|
||||
"@supabase/gotrue-js": "2.42.0",
|
||||
"@supabase/gotrue-js": "^2.45.0",
|
||||
"@supabase/ui": "^0.37.0-alpha.50",
|
||||
"react-use": "^17.4.0"
|
||||
},
|
||||
@@ -39925,9 +39925,9 @@
|
||||
}
|
||||
},
|
||||
"packages/common/node_modules/@supabase/gotrue-js": {
|
||||
"version": "2.42.0",
|
||||
"resolved": "https://registry.npmjs.org/@supabase/gotrue-js/-/gotrue-js-2.42.0.tgz",
|
||||
"integrity": "sha512-qYyTD+WVP9gjE7Hzw/ywoL9f+1kuUxeKJbb9JSsxV4wZHdKKPFHczfna8ecbmapH7423OXp0lgQAUDX97M39qw==",
|
||||
"version": "2.45.0",
|
||||
"resolved": "https://registry.npmjs.org/@supabase/gotrue-js/-/gotrue-js-2.45.0.tgz",
|
||||
"integrity": "sha512-ctHQqk9foMHvU9pyGXbSbyalmyJ4dkpK/72jIytH5DbXxawqPIjUmJ+Ww9yyJLFP6wCsjPdeYBI+NW070WESvg==",
|
||||
"dependencies": {
|
||||
"cross-fetch": "^3.1.5"
|
||||
}
|
||||
|
||||
@@ -1,16 +1,23 @@
|
||||
import { GoTrueClient } from '@supabase/gotrue-js'
|
||||
import { GoTrueClient, navigatorLock } from '@supabase/gotrue-js'
|
||||
|
||||
export const STORAGE_KEY = process.env.NEXT_PUBLIC_STORAGE_KEY || 'supabase.dashboard.auth.token'
|
||||
export const AUTH_DEBUG_KEY =
|
||||
process.env.NEXT_PUBLIC_AUTH_DEBUG_KEY || 'supabase.dashboard.auth.debug'
|
||||
export const AUTH_NAVIGATOR_LOCK_KEY =
|
||||
process.env.NEXT_PUBLIC_AUTH_NAVIGATOR_LOCK_KEY || 'supabase.dashboard.auth.navigatorLock.enabled'
|
||||
|
||||
const debug =
|
||||
process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' &&
|
||||
globalThis?.localStorage?.getItem(AUTH_DEBUG_KEY) === 'true'
|
||||
|
||||
const navigatorLockEnabled =
|
||||
process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' &&
|
||||
globalThis?.localStorage?.getItem(AUTH_NAVIGATOR_LOCK_KEY) === 'true'
|
||||
|
||||
export const gotrueClient = new GoTrueClient({
|
||||
url: process.env.NEXT_PUBLIC_GOTRUE_URL,
|
||||
storageKey: STORAGE_KEY,
|
||||
detectSessionInUrl: true,
|
||||
debug,
|
||||
lock: navigatorLockEnabled ? navigatorLock : undefined,
|
||||
})
|
||||
@@ -6,7 +6,7 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@headlessui/react": "^1.7.14",
|
||||
"@supabase/gotrue-js": "2.42.0",
|
||||
"@supabase/gotrue-js": "^2.45.0",
|
||||
"@supabase/ui": "^0.37.0-alpha.50",
|
||||
"react-use": "^17.4.0"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user