From 8fe7215a914e0329ad9a36b493b1e73c247b62a0 Mon Sep 17 00:00:00 2001 From: Kang Ming Date: Fri, 12 Aug 2022 11:09:39 +0800 Subject: [PATCH] fix: bump gotrue-js/next (#495) --- package-lock.json | 14 +++++++------- package.json | 2 +- src/SupabaseClient.ts | 4 ++-- src/lib/types.ts | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0febd308..63cbe3c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@supabase/functions-js": "^1.3.3", - "@supabase/gotrue-js": "^1.23.0-next.12", + "@supabase/gotrue-js": "^1.23.0-next.14", "@supabase/postgrest-js": "^1.0.0-next.2", "@supabase/realtime-js": "^1.8.0-next.13", "@supabase/storage-js": "^1.8.0-next.3", @@ -919,9 +919,9 @@ } }, "node_modules/@supabase/gotrue-js": { - "version": "1.23.0-next.12", - "resolved": "https://registry.npmjs.org/@supabase/gotrue-js/-/gotrue-js-1.23.0-next.12.tgz", - "integrity": "sha512-F+XFCnexNwDHD9JcbqhnJeM10MSBRuLZXWKvEGLjrRSHJdxYm7z+HSf1t8mlvno2Xd97oWUFTr6lSnSQmDM+Bw==", + "version": "1.23.0-next.14", + "resolved": "https://registry.npmjs.org/@supabase/gotrue-js/-/gotrue-js-1.23.0-next.14.tgz", + "integrity": "sha512-eTo1vZr1s7dxrJtQA+lIeCtuaOB+LP7byzlc0oHRiEAuT98sjav7N64VPk5XqmbN19KAwkUMcwy0LVYKm2fAbg==", "dependencies": { "cross-fetch": "^3.1.5" } @@ -9097,9 +9097,9 @@ } }, "@supabase/gotrue-js": { - "version": "1.23.0-next.12", - "resolved": "https://registry.npmjs.org/@supabase/gotrue-js/-/gotrue-js-1.23.0-next.12.tgz", - "integrity": "sha512-F+XFCnexNwDHD9JcbqhnJeM10MSBRuLZXWKvEGLjrRSHJdxYm7z+HSf1t8mlvno2Xd97oWUFTr6lSnSQmDM+Bw==", + "version": "1.23.0-next.14", + "resolved": "https://registry.npmjs.org/@supabase/gotrue-js/-/gotrue-js-1.23.0-next.14.tgz", + "integrity": "sha512-eTo1vZr1s7dxrJtQA+lIeCtuaOB+LP7byzlc0oHRiEAuT98sjav7N64VPk5XqmbN19KAwkUMcwy0LVYKm2fAbg==", "requires": { "cross-fetch": "^3.1.5" } diff --git a/package.json b/package.json index 54e60727..92526a6d 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ }, "dependencies": { "@supabase/functions-js": "^1.3.3", - "@supabase/gotrue-js": "^1.23.0-next.12", + "@supabase/gotrue-js": "^1.23.0-next.14", "@supabase/postgrest-js": "^1.0.0-next.2", "@supabase/realtime-js": "^1.8.0-next.13", "@supabase/storage-js": "^1.8.0-next.3", diff --git a/src/SupabaseClient.ts b/src/SupabaseClient.ts index ecd70b1b..259bde27 100644 --- a/src/SupabaseClient.ts +++ b/src/SupabaseClient.ts @@ -261,7 +261,7 @@ export default class SupabaseClient< autoRefreshToken, persistSession, detectSessionInUrl, - localStorage, + storage, cookieOptions, storageKey, }: SupabaseAuthClientOptions, @@ -279,7 +279,7 @@ export default class SupabaseClient< autoRefreshToken, persistSession, detectSessionInUrl, - localStorage, + storage, fetch, cookieOptions, }) diff --git a/src/lib/types.ts b/src/lib/types.ts index 83f5000c..1fbf7ef6 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -35,7 +35,7 @@ export type SupabaseClientOptions = { /** * A storage provider. Used to store the logged in session. */ - localStorage?: SupabaseAuthClientOptions['localStorage'] + storage?: SupabaseAuthClientOptions['storage'] /** * Options passed to the gotrue-js instance */