Skip to content

Commit fead45a

Browse files
committed
fix: fallback to key when no access token available
1 parent dd01463 commit fead45a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SupabaseClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export default class SupabaseClient<
280280

281281
const { data } = await this.auth.getSession()
282282

283-
return data.session?.access_token ?? null
283+
return data.session?.access_token ?? this.supabaseKey
284284
}
285285

286286
private _initSupabaseAuthClient(

0 commit comments

Comments
 (0)