Skip to content

Commit ab5a346

Browse files
committed
Revert "feat: pass global header bearer token as apikey to RealtimeClient (#699)"
This reverts commit b55d386.
1 parent b55d386 commit ab5a346

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/SupabaseClient.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,9 @@ export default class SupabaseClient<
265265
}
266266

267267
private _initRealtimeClient(options: RealtimeClientOptions) {
268-
const authHeader = options.headers?.Authorization
269-
const authToken = authHeader?.startsWith('Bearer ') && authHeader.split(' ')[1]
270268
return new RealtimeClient(this.realtimeUrl, {
271269
...options,
272-
params: { ...{ apikey: authToken || this.supabaseKey }, ...options?.params },
270+
params: { ...{ apikey: this.supabaseKey }, ...options?.params },
273271
})
274272
}
275273

0 commit comments

Comments
 (0)