Skip to content

Commit 43986e6

Browse files
dshukertjrsoedirgo
authored andcommitted
fix: set DEFAULT_HEADERS by default for postgrest client
1 parent 376689f commit 43986e6

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
@@ -177,7 +177,7 @@ export default class SupabaseClient {
177177
}
178178

179179
private _getAuthHeaders(): { [key: string]: string } {
180-
const headers: { [key: string]: string } = {}
180+
const headers: { [key: string]: string } = DEFAULT_HEADERS
181181
const authBearer = this.auth.session()?.access_token ?? this.supabaseKey
182182
headers['apikey'] = this.supabaseKey
183183
headers['Authorization'] = `Bearer ${authBearer}`

0 commit comments

Comments
 (0)