Skip to content

Commit

Permalink
fix(client): unset auth token on rejected connection attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jost Schulte committed Oct 28, 2024
1 parent efe02c5 commit d3d8412
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export class WsClient extends Emittery {
const invalidTokenCloseListener = (
closeEvent: IsoWebSocket.CloseEvent
) => {
this.authenticationToken = undefined;
reject(
new HolochainError(
"InvalidTokenError",
Expand Down

0 comments on commit d3d8412

Please sign in to comment.