Skip to content

Commit

Permalink
fix: temporary token path invocation (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
PuruVJ authored Oct 8, 2024
1 parent cfa9211 commit 79c278b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/yellow-goats-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clockworklabs/spacetimedb-sdk': patch
---

fix: temporary token path invocation
2 changes: 1 addition & 1 deletion packages/sdk/src/websocket_decompress_adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class WebsocketDecompressAdapter {
WS = WebSocket;
}

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

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

0 comments on commit 79c278b

Please sign in to comment.