Skip to content

Commit

Permalink
fix(clerk-js): Re-initialize Client singleton on Client destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper committed Oct 18, 2023
1 parent 3bf6410 commit 6e01dd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/clerk-js/src/core/resources/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export class Client extends BaseResource implements ClientResource {
return this._baseDelete({ path: '/client' }).then(() => {
SessionTokenCache.clear();
this.sessions = [];
Client.instance = new Client();
});
}

Expand Down

0 comments on commit 6e01dd3

Please sign in to comment.