Skip to content

Commit e537ee7

Browse files
committed
fix: circular auth fetch
1 parent 74ce9e3 commit e537ee7

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
@@ -97,9 +97,9 @@ export default class SupabaseClient<
9797
this.headers = { ...DEFAULT_HEADERS, ...options?.headers }
9898
this.shouldThrowOnError = settings.shouldThrowOnError || false
9999

100+
this.auth = this._initSupabaseAuthClient(settings.auth || {}, this.headers, settings.fetch)
100101
this.fetch = fetchWithAuth(supabaseKey, this._getAccessToken.bind(this), settings.fetch)
101102

102-
this.auth = this._initSupabaseAuthClient(settings.auth || {}, this.headers, this.fetch)
103103
this.realtime = this._initRealtimeClient({ headers: this.headers, ...settings.realtime })
104104
this.rest = new PostgrestClient(`${_supabaseUrl}/rest/v1`, {
105105
headers: this.headers,

0 commit comments

Comments
 (0)