Skip to content

Commit 8bfceb5

Browse files
refactor: remove unused fields
1 parent 4979a2a commit 8bfceb5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/SupabaseClient.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const DEFAULT_OPTIONS = {
2121
detectSessionInUrl: true,
2222
},
2323
global: {
24-
timeoutMs: 500,
2524
headers: DEFAULT_HEADERS,
2625
},
2726
db: {
@@ -104,7 +103,7 @@ export default class SupabaseClient<
104103
const authSettings = Object.assign(DEFAULT_OPTIONS.global, DEFAULT_OPTIONS.auth, settings.auth)
105104
const dbSettings = Object.assign(DEFAULT_OPTIONS.global, DEFAULT_OPTIONS.db, settings.db)
106105

107-
this.headers = { ...DEFAULT_OPTIONS?.global?.headers, ...options?.headers }
106+
this.headers = settings.headers
108107

109108
this.auth = this._initSupabaseAuthClient(authSettings, this.headers, this.fetch)
110109
this.fetch = fetchWithAuth(supabaseKey, this._getAccessToken.bind(this), this.fetch)

0 commit comments

Comments
 (0)