Skip to content

Commit 4dece6b

Browse files
ftonatow3b6x9
andauthored
refactor: update headers in getAuthHeaders
Co-authored-by: Wen Bo Xie <[email protected]>
1 parent 1964793 commit 4dece6b

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
@@ -256,7 +256,7 @@ export default class SupabaseClient {
256256
}
257257

258258
private _getAuthHeaders(): GenericObject {
259-
const headers: GenericObject = DEFAULT_HEADERS
259+
const headers: GenericObject = this.headers
260260
const authBearer = this.auth.session()?.access_token ?? this.supabaseKey
261261
headers['apikey'] = this.supabaseKey
262262
headers['Authorization'] = `Bearer ${authBearer}`

0 commit comments

Comments
 (0)