Skip to content

Commit 95615f1

Browse files
authored
scopes headers to a mutable variable within the function
1 parent a5bc375 commit 95615f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class SupabaseClient {
8989
}
9090

9191
initClient() {
92-
const headers = { apikey: this.supabaseKey }
92+
let headers = { apikey: this.supabaseKey }
9393

9494
if (this.auth.accessToken) headers['Authorization'] = `Bearer ${this.auth.accessToken}`
9595

0 commit comments

Comments
 (0)