From f8e48ffe87949c80c89cd40b723120450cd017f5 Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Thu, 12 Dec 2024 14:40:07 +0900 Subject: [PATCH] fix: Make the return value of accessToken nullable --- src/SupabaseClient.ts | 2 +- src/lib/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SupabaseClient.ts b/src/SupabaseClient.ts index f42352894..e67986c66 100644 --- a/src/SupabaseClient.ts +++ b/src/SupabaseClient.ts @@ -51,7 +51,7 @@ export default class SupabaseClient< protected storageKey: string protected fetch?: Fetch protected changedAccessToken?: string - protected accessToken?: () => Promise + protected accessToken?: () => Promise protected headers: Record diff --git a/src/lib/types.ts b/src/lib/types.ts index 85531a0ee..29b520790 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -77,7 +77,7 @@ export type SupabaseClientOptions = { * Create another client if you wish to use Supabase Auth and third-party * authentications concurrently in the same application. */ - accessToken?: () => Promise + accessToken?: () => Promise } export type GenericTable = {