Skip to content

Commit 41d6113

Browse files
authored
fix: allow overriding Bearer token (#402)
1 parent da2b0ba commit 41d6113

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
@@ -247,7 +247,7 @@ export default class SupabaseClient {
247247
const headers: GenericObject = this.headers
248248
const authBearer = this.auth.session()?.access_token ?? this.supabaseKey
249249
headers['apikey'] = this.supabaseKey
250-
headers['Authorization'] = `Bearer ${authBearer}`
250+
headers['Authorization'] = headers['Authorization'] || `Bearer ${authBearer}`
251251
return headers
252252
}
253253

0 commit comments

Comments
 (0)