We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1661420 + f8e48ff commit a50725dCopy full SHA for a50725d
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 GenericRelationship = {
0 commit comments