Skip to content

Commit 79c278b

Browse files
authored
fix: temporary token path invocation (#105)
1 parent cfa9211 commit 79c278b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/yellow-goats-whisper.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clockworklabs/spacetimedb-sdk': patch
3+
---
4+
5+
fix: temporary token path invocation

packages/sdk/src/websocket_decompress_adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class WebsocketDecompressAdapter {
8484
WS = WebSocket;
8585
}
8686

87-
const tokenUrl = new URL('identity/websocket_token', url);
87+
const tokenUrl = new URL('/identity/websocket_token', url);
8888
tokenUrl.protocol = url.protocol === 'wss:' ? 'https:' : 'http:';
8989

9090
const response = await fetch(tokenUrl, { method: 'POST', headers });

0 commit comments

Comments
 (0)