Skip to content

Commit ed4631c

Browse files
committed
fix: Add Bearer type to WebSocket Authorization header
1 parent 53cd1e8 commit ed4631c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/adapters/config/web-socket-config.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe("WebSocketConfigImpl", () => {
4040
new SerializerNativeImpl(),
4141
);
4242

43-
expect(config.getHeaders()).toEqual({ Authorization: "token" });
43+
expect(config.getHeaders()).toEqual({ Authorization: "Bearer token" });
4444
});
4545

4646
it("creates websocket header without token when not supported", () => {

src/adapters/config/web-socket-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class WebSocketConfigImpl implements WebSocketConfig {
6868
}
6969

7070
return {
71-
Authorization: this.props.accessToken,
71+
Authorization: `Bearer ${this.props.accessToken}`,
7272
};
7373
}
7474

0 commit comments

Comments
 (0)