File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,11 @@ export default class SupabaseClient {
62
62
this . authUrl = `${ supabaseUrl } /auth/v1`
63
63
this . storageUrl = `${ supabaseUrl } /storage/v1`
64
64
this . schema = settings . schema
65
+ this . fetch = settings . fetch
65
66
66
67
this . auth = this . _initSupabaseAuthClient ( settings )
67
68
this . realtime = this . _initRealtimeClient ( settings . realtime )
68
69
69
- this . fetch = settings . fetch
70
-
71
70
// In the future we might allow the user to pass in a logger to receive these events.
72
71
// this.realtime.onOpen(() => console.log('OPEN'))
73
72
// this.realtime.onClose(() => console.log('CLOSED'))
@@ -159,6 +158,7 @@ export default class SupabaseClient {
159
158
detectSessionInUrl,
160
159
localStorage,
161
160
headers,
161
+ fetch,
162
162
} : SupabaseClientOptions ) {
163
163
const authHeaders = {
164
164
Authorization : `Bearer ${ this . supabaseKey } ` ,
@@ -171,7 +171,7 @@ export default class SupabaseClient {
171
171
persistSession,
172
172
detectSessionInUrl,
173
173
localStorage,
174
- fetch : this . fetch ,
174
+ fetch,
175
175
} )
176
176
}
177
177
You can’t perform that action at this time.
0 commit comments