Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: bump auth-js version to v2.67.3 (#31217)

Kang Ming4278bd4ec1fc
diff --git a/apps/docs/package.json b/apps/docs/package.json
index 6f072555ab7..31603dd54ee 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -42,7 +42,7 @@
"@octokit/plugin-paginate-graphql": "^4.0.0",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-collapsible": "^1.0.3",
- "@supabase/supabase-js": "^2.44.3",
+ "@supabase/supabase-js": "catalog:",
"@tailwindcss/container-queries": "^0.1.1",
"@tanstack/react-query": "^5.13.4",
"acorn": "^8.11.3",
diff --git a/apps/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsx b/apps/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsx
index fe519e25821..ab4c993426d 100644
--- a/apps/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsx
+++ b/apps/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsx
@@ -41,7 +41,7 @@ const AddNewFactorModal = ({ visible, onClose }: AddNewFactorModalProps) => {
<SecondStep
visible={visible && Boolean(data)}
factorName={name}
- factor={data!}
+ factor={data as Extract<typeof data, { type: 'totp' }>}
isLoading={isEnrolling}
onSuccess={() => onClose()}
onClose={onClose}
diff --git a/apps/studio/lib/gotrue.ts b/apps/studio/lib/gotrue.ts
index efcde694edd..2556bf4e12d 100644
--- a/apps/studio/lib/gotrue.ts
+++ b/apps/studio/lib/gotrue.ts
@@ -1,5 +1,4 @@
-import type { User } from '@supabase/auth-js'
-import { getAccessToken, gotrueClient } from 'common'
+import { getAccessToken, gotrueClient, type User } from 'common'
export const auth = gotrueClient
export { getAccessToken }
diff --git a/apps/studio/package.json b/apps/studio/package.json
index 58b9c9637ba..ff54d7b46da 100644
--- a/apps/studio/package.json
+++ b/apps/studio/package.json
@@ -39,12 +39,12 @@
"@sentry/nextjs": "^8.34.0",
"@stripe/react-stripe-js": "^3.1.1",
"@stripe/stripe-js": "^5.5.0",
- "@supabase/auth-js": "2.64.2",
+ "@supabase/auth-js": "catalog:",
"@supabase/pg-meta": "workspace:*",
- "@supabase/realtime-js": "2.10.2",
+ "@supabase/realtime-js": "catalog:",
"@supabase/shared-types": "0.1.74",
"@supabase/sql-to-rest": "^0.1.6",
- "@supabase/supabase-js": "^2.44.3",
+ "@supabase/supabase-js": "catalog:",
"@tanstack/react-query": "4.35.7",
"@tanstack/react-query-devtools": "4.35.7",
"@uidotdev/usehooks": "^2.4.1",
diff --git a/apps/www/package.json b/apps/www/package.json
index 326607bce4c..d20c1ab23fb 100644
--- a/apps/www/package.json
+++ b/apps/www/package.json
@@ -28,7 +28,7 @@
"@octokit/plugin-paginate-graphql": "^4.0.0",
"@octokit/rest": "^20.0.2",
"@radix-ui/react-dialog": "^1.0.5",
- "@supabase/supabase-js": "^2.44.3",
+ "@supabase/supabase-js": "catalog:",
"@vercel/og": "^0.6.2",
"ai-commands": "workspace:*",
"animejs": "^3.2.2",
diff --git a/packages/ai-commands/package.json b/packages/ai-commands/package.json
index cca078a1b06..b8dfb5a8d5b 100644
--- a/packages/ai-commands/package.json
+++ b/packages/ai-commands/package.json
@@ -13,7 +13,7 @@
},
"dependencies": {
"@serafin/schema-builder": "^0.18.5",
- "@supabase/supabase-js": "*",
+ "@supabase/supabase-js": "catalog:",
"ai": "^3.4.33",
"common-tags": "^1.8.2",
"config": "workspace:*",
diff --git a/packages/common/auth.tsx b/packages/common/auth.tsx
index d77acc76574..9064c365448 100644
--- a/packages/common/auth.tsx
+++ b/packages/common/auth.tsx
@@ -10,7 +10,9 @@ import {
useMemo,
useState,
} from 'react'
-import { gotrueClient } from './gotrue'
+import { gotrueClient, type User } from './gotrue'
+
+export type { User }
const DEFAULT_SESSION: any = {
access_token: undefined,
diff --git a/packages/common/gotrue.ts b/packages/common/gotrue.ts
index 295ce8fa2fd..309dd3ab51d 100644
--- a/packages/common/gotrue.ts
+++ b/packages/common/gotrue.ts
@@ -1,4 +1,4 @@
-import { AuthClient, navigatorLock } from '@supabase/auth-js'
+import { AuthClient, navigatorLock, User } from '@supabase/auth-js'
export const STORAGE_KEY = process.env.NEXT_PUBLIC_STORAGE_KEY || 'supabase.dashboard.auth.token'
export const AUTH_DEBUG_KEY =
@@ -111,3 +111,5 @@ export const gotrueClient = new AuthClient({
debug: debug ? (persistedDebug ? logIndexedDB : true) : false,
lock: navigatorLockEnabled ? navigatorLock : undefined,
})
+
+export type { User }
diff --git a/packages/common/package.json b/packages/common/package.json
index a75ccd196f4..818761ff61e 100644
--- a/packages/common/package.json
+++ b/packages/common/package.json
@@ -28,8 +28,8 @@
"typescript": "~5.5.0"
},
"peerDependencies": {
- "@supabase/auth-js": "^2.63.0",
- "@supabase/supabase-js": "*",
+ "@supabase/auth-js": "catalog:",
+ "@supabase/supabase-js": "catalog:",
"next": "catalog:",
"react": "*",
"react-dom": "*"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4f986f58a21..8cd30712370 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -6,6 +6,15 @@ settings:
catalogs:
default:
+ '@supabase/auth-js':
+ specifier: ^2.67.3
+ version: 2.67.3
+ '@supabase/realtime-js':
+ specifier: ^2.11.3
+ version: 2.11.3
+ '@supabase/supabase-js':
+ specifier: ^2.47.14
+ version: 2.47.14
'@types/node':
specifier: ^20.0.0
version: 20.12.11
@@ -226,8 +235,8 @@ importers:
specifier: ^1.0.3
'@supabase/supabase-js':
- specifier: ^2.44.3
- version: 2.44.3
+ specifier: 'catalog:'
+ version: 2.47.14
'@tailwindcss/container-queries':
specifier: ^0.1.1
@@ -563,14 +572,14 @@ importers:
specifier: ^5.5.0
version: 5.5.0
'@supabase/auth-js':
- specifier: 2.64.2
- version: 2.64.2
+ specifier: 'catalog:'
+ version: 2.67.3
'@supabase/pg-meta':
specifier: workspace:*
version: link:../../packages/pg-meta
'@supabase/realtime-js':
- specifier: 2.10.2
- version: 2.10.2
+ specifier: 'catalog:'
+ version: 2.11.3
'@supabase/shared-types':
specifier: 0.1.74
version: 0.1.74
@@ -578,8 +587,8 @@ importers:
specifier: ^0.1.6
'@supabase/supabase-js':
- specifier: ^2.44.3
- version: 2.44.3
+ specifier: 'catalog:'
+ version: 2.47.14
'@tanstack/react-query':
specifier: 4.35.7
@@ -1017,8 +1026,8 @@ importers:
specifier: ^1.0.5
'@supabase/supabase-js':
- specifier: ^2.44.3
- version: 2.44.3
+ specifier: 'catalog:'
+ version: 2.47.14
'@vercel/og':
specifier: ^0.6.2
version: 0.6.2
@@ -1237,8 +1246,8 @@ importers:
specifier: ^0.18.5
version: 0.18.5
'@supabase/supabase-js':
- specifier: '*'
- version: 2.44.3
+ specifier: 'catalog:'
+ version: 2.47.14
ai:
specifier: ^3.4.33
@@ -1325,11 +1334,11 @@ importers:
packages/common:
dependencies:
'@supabase/auth-js':
- specifier: ^2.63.0
- version: 2.64.2
+ specifier: 'catalog:'
+ version: 2.67.3
'@supabase/supabase-js':
- specifier: '*'
- version: 2.44.3
+ specifier: 'catalog:'
+ version: 2.47.14
'@types/dat.gui':
specifier: ^0.7.12
version: 0.7.12
@@ -5095,11 +5104,11 @@ packages:
resolution: {integrity: sha512-lkfjyAd34aeMpTKKcEVfy8IUyEsjuAT3t9EXr5yZDtdIUncnZpedl/xLV16Dkd4z+fQwixScsCCDxSMNtBOgpQ==}
engines: {node: '>=12.16'}
- '@supabase/[email protected]':
- resolution: {integrity: sha512-s+lkHEdGiczDrzXJ1YWt2y3bxRi+qIUnXcgkpLSrId7yjBeaXBFygNjTaoZLG02KNcYwbuZ9qkEIqmj2hF7svw==}
+ '@supabase/[email protected]':
+ resolution: {integrity: sha512-NJDaW8yXs49xMvWVOkSIr8j46jf+tYHV0wHhrwOaLLMZSFO4g6kKAf+MfzQ2RaD06OCUkUHIzctLAxjTgEVpzw==}
- '@supabase/[email protected]':
- resolution: {integrity: sha512-8sZ2ibwHlf+WkHDUZJUXqqmPvWQ3UHN0W30behOJngVh/qHHekhJLCFbh0AjkE9/FqqXtf9eoVvmYgfCLk5tNA==}
+ '@supabase/[email protected]':
+ resolution: {integrity: sha512-WL2p6r4AXNGwop7iwvul2BvOtuJ1YQy8EbOd0dhG1oN1q8el/BIRSFCFnWAMM/vJJlHWLi4ad22sKbKr9mvjoA==}
'@supabase/[email protected]':
resolution: {integrity: sha512-1ibVeYUacxWYi9i0cf5efil6adJ9WRyZBLivgjs+AUpewx1F3xPi7gLgaASI2SmIQxPoCEjAsLAzKPgMJVgOUQ==}
@@ -5109,11 +5118,14 @@ packages:
resolution: {integrity: sha512-vz5gc6RKNfDVnIfRUmH2ssTMYFI0U3MYOVyQ9R4YkzOS2dKSanjC4rTEDGjlMFwGTCUPW3N3pbY7HJIW81wMyg==}
engines: {node: '>=16', npm: '>=8'}
- '@supabase/[email protected]':
- resolution: {integrity: sha512-YunjXpoQjQ0a0/7vGAvGZA2dlMABXFdVI/8TuVKtlePxyT71sl6ERl6ay1fmIeZcqxiuFQuZw/LXUuStUG9bbg==}
+ '@supabase/[email protected]':
+ resolution: {integrity: sha512-AOqqgQEhLVqzOMmA8Q0bxQFMfbozbjjQ1Tt4kprkstIKdRl4yZRaMdoVxFkCpU8ivmAe2xNfAVkNK+l16a9P0A==}
- '@supabase/[email protected]':
- resolution: {integrity: sha512-qyCQaNg90HmJstsvr2aJNxK2zgoKh9ZZA8oqb7UT2LCh3mj9zpa3Iwu167AuyNxsxrUE8eEJ2yH6wLCij4EApA==}
+ '@supabase/[email protected]':
+ resolution: {integrity: sha512-u/XeuL2Y0QEhXSoIPZZwR6wMXgB+RQbJzG9VErA3VghVt7uRfSVsjeqd7m5GhX3JR6dM/WRmLbVR8URpDWG4+w==}
+
+ '@supabase/[email protected]':
+ resolution: {integrity: sha512-rMMGtZy2MaSBlNXP5hJZx+ij5JtQGPuBQ7/izE1oKlR1A6SzbN0VWeFTdmDHVa1gcJ72zpQAjbSmByIG6uz/eA==}
'@supabase/[email protected]':
resolution: {integrity: sha512-vYbNA6JtV4PNTSuyRQsRBn6v99WMKCBN5wgS2Ezl3n4EGgCoJCvHyQFbNEwbf1vvZVum/j1bAAK3n3io1jxiqA==}
@@ -5121,8 +5133,8 @@ packages:
'@supabase/[email protected]':
resolution: {integrity: sha512-06KgjeINtc6405XQvfnchBE1azEsU8G2NElfadmvVHKmHa5l2bFzjbtFbpaYgpgTzccHlcDmBaCgedVf2Gyl8Q==}
- '@supabase/[email protected]':
- resolution: {integrity: sha512-REAxr7myf+3utMkI2oOmZ6sdplMZZ71/2NEIEMBZHL9Fkmm3/JnaOZVSRqvG4LStYj2v5WhCruCzuMn6oD/Drw==}
+ '@supabase/[email protected]':
+ resolution: {integrity: sha512-asYHcyDR1fKqrMpytAS1zjyEfvxuOIp1CIXX7ji4lHHcJKqyk+sLl/Vxgm4sN6u8zvuUtae9e4kDxQP2qrwWBA==}
'@supabase/[email protected]':
resolution: {integrity: sha512-ggvl/+g7TRWZ0tBvnTUPART38N8qIo2UgkShGsgi5/BnRdVsw5CwQqqDZT7+enEZRiobbVrE+hUDCTWCManqFA==}
@@ -5169,8 +5181,8 @@ packages:
resolution: {integrity: sha512-RSlUumUJ1LifWa2+a+t0eGOWay9kkroi1JaMHV8HJf30a92o2U6TaP/tXiAQesgTblZNC+ty2/74Al0rmp/OdQ==}
hasBin: true
- '@supabase/[email protected]':
- resolution: {integrity: sha512-3tYf5ojKSL0RJIpnkwYSdLPdRcza8KMTdRx2SyF9YA6PWnuUfqzmqjZohAHJuGql2CaPMWd9BLPOHupPuGq0lQ==}
+ '@supabase/[email protected]':
+ resolution: {integrity: sha512-Jmm9fN+16KwC2s7GEudiEnVpz5+Bc0DEMrjI3CKPWoRArTEZPUiOm7y1IbAJ3zSpvwsdk9i/c/k7wqCbwlBj9A==}
resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==}
@@ -12728,8 +12740,8 @@ packages:
utf-8-validate:
optional: true
- resolution: {integrity: sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==}
+ resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==}
engines: {node: '>=10.0.0'}
peerDependencies:
bufferutil: ^4.0.1
@@ -16911,11 +16923,11 @@ snapshots:
'@stripe/[email protected]': {}
- '@supabase/[email protected]':
+ '@supabase/[email protected]':
dependencies:
'@supabase/node-fetch': 2.6.15
- '@supabase/[email protected]':
+ '@supabase/[email protected]':
dependencies:
'@supabase/node-fetch': 2.6.15
@@ -16938,16 +16950,26 @@ snapshots:
- pg-native
- supports-color
- '@supabase/[email protected]':
+ '@supabase/[email protected]':
dependencies:
'@supabase/node-fetch': 2.6.15
- '@supabase/[email protected]':
+ '@supabase/[email protected]':
+ dependencies:
+ '@supabase/node-fetch': 2.6.15
+ '@types/phoenix': 1.6.4
+ '@types/ws': 8.5.10
+ ws: 8.18.0
+ transitivePeerDependencies:
+ - bufferutil
+ - utf-8-validate
+
+ '@supabase/[email protected]':
dependencies:
'@supabase/node-fetch': 2.6.15
'@types/phoenix': 1.6.4
'@types/ws': 8.5.10
- ws: 8.17.1
+ ws: 8.18.0
transitivePeerDependencies:
- bufferutil
- utf-8-validate
@@ -16963,7 +16985,7 @@ snapshots:
- encoding
- supports-color
- '@supabase/[email protected]':
+ '@supabase/[email protected]':
dependencies:
'@supabase/node-fetch': 2.6.15
@@ -16998,14 +17020,14 @@ snapshots:
'@supabase/supa-mdx-lint-win32-i686': 0.1.7-alpha
'@supabase/supa-mdx-lint-win32-x64': 0.1.7-alpha
- '@supabase/[email protected]':
+ '@supabase/[email protected]':
dependencies:
- '@supabase/auth-js': 2.64.2
- '@supabase/functions-js': 2.4.1
+ '@supabase/auth-js': 2.67.3
+ '@supabase/functions-js': 2.4.4
'@supabase/node-fetch': 2.6.15
- '@supabase/postgrest-js': 1.15.8
- '@supabase/realtime-js': 2.10.2
- '@supabase/storage-js': 2.6.0
+ '@supabase/postgrest-js': 1.17.11
+ '@supabase/realtime-js': 2.11.2
+ '@supabase/storage-js': 2.7.1
transitivePeerDependencies:
- bufferutil
- utf-8-validate
@@ -21545,7 +21567,7 @@ snapshots:
whatwg-encoding: 2.0.0
whatwg-mimetype: 3.0.0
whatwg-url: 11.0.0
- ws: 8.17.1
+ ws: 8.18.0
xml-name-validator: 4.0.0
transitivePeerDependencies:
- bufferutil
@@ -26754,7 +26776,7 @@ snapshots:
dependencies:
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index b5304a2d449..e945e2c023d 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -1,8 +1,11 @@
packages:
- - "apps/*"
- - "packages/*"
- - "tests/*"
+ - 'apps/*'
+ - 'packages/*'
+ - 'tests/*'
catalog:
'@types/node': ^20.0.0
+ '@supabase/auth-js': ^2.67.3
+ '@supabase/supabase-js': ^2.47.14
+ '@supabase/realtime-js': ^2.11.3
next: 14.2.21