Skip to content

Commit

Permalink
Merge pull request #298 from torusresearch/v7
Browse files Browse the repository at this point in the history
delete session namespace
  • Loading branch information
chaitanyapotti authored Feb 6, 2024
2 parents e043d1e + e17b9b2 commit 7856407
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/openlogin/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@ export function getHashQueryParams(replaceUrl = false): HashQueryParamResult {
queryUrlParams.delete("error");
queryUrlParams.delete("state");
queryUrlParams.delete("b64Params");
queryUrlParams.delete("sessionNamespace");
cleanUrl.search = queryUrlParams.toString();
}
if (hashUrlParams.size > 0) {
hashUrlParams.delete("error");
hashUrlParams.delete("state");
hashUrlParams.delete("b64Params");
hashUrlParams.delete("sessionNamespace");
cleanUrl.hash = hashUrlParams.toString();
}
window.history.replaceState({ ...window.history.state, as: cleanUrl.href, url: cleanUrl.href }, "", cleanUrl.href);
Expand Down

0 comments on commit 7856407

Please sign in to comment.