Skip to content

Commit

Permalink
Fix iss checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Sep 3, 2024
1 parent e7d76ec commit ae4f620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class LoginClient {
}

// We are in the Authress authentication context. We might not have a code and we might not have other properties depending on the login path, so this check let's us ensure we delete all url parameters that aren't necessary, and since this will happen even outside of an auth exchange, let's also check for containing the matching iss
if (authRequest.nonce || urlSearchParams.get('iss').includes(this.hostUrl)) {
if (authRequest.nonce || urlSearchParams.get('iss') && urlSearchParams.get('iss').includes(this.hostUrl)) {
this.sanitizeQueryParameters();
}

Expand Down

0 comments on commit ae4f620

Please sign in to comment.