We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa97643 commit f8e48ffCopy full SHA for f8e48ff
src/SupabaseClient.ts
@@ -51,7 +51,7 @@ export default class SupabaseClient<
51
protected storageKey: string
52
protected fetch?: Fetch
53
protected changedAccessToken?: string
54
- protected accessToken?: () => Promise<string>
+ protected accessToken?: () => Promise<string | null>
55
56
protected headers: Record<string, string>
57
src/lib/types.ts
@@ -77,7 +77,7 @@ export type SupabaseClientOptions<SchemaName> = {
77
* Create another client if you wish to use Supabase Auth and third-party
78
* authentications concurrently in the same application.
79
*/
80
- accessToken?: () => Promise<string>
+ accessToken?: () => Promise<string | null>
81
}
82
83
export type GenericTable = {
0 commit comments