We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b55d386 commit ab5a346Copy full SHA for ab5a346
src/SupabaseClient.ts
@@ -265,11 +265,9 @@ export default class SupabaseClient<
265
}
266
267
private _initRealtimeClient(options: RealtimeClientOptions) {
268
- const authHeader = options.headers?.Authorization
269
- const authToken = authHeader?.startsWith('Bearer ') && authHeader.split(' ')[1]
270
return new RealtimeClient(this.realtimeUrl, {
271
...options,
272
- params: { ...{ apikey: authToken || this.supabaseKey }, ...options?.params },
+ params: { ...{ apikey: this.supabaseKey }, ...options?.params },
273
})
274
275
0 commit comments