Skip to content

Commit

Permalink
refactor: url split is no longer required
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonraimondi committed Feb 11, 2024
1 parent aeec5a8 commit 41c1242
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/grants/abstract/abstract_authorized.grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ export abstract class AbstractAuthorizedGrant extends AbstractGrant {
);
}

const redirectUriWithoutQuery = redirectUri.split("?")[0];
if (!client.redirectUris.some(uri => urlsAreSameIgnoringPort(redirectUriWithoutQuery, uri))) {
if (!client.redirectUris.some(uri => urlsAreSameIgnoringPort(redirectUri, uri))) {
throw OAuthException.invalidClient("Invalid redirect_uri");
}

Expand Down

0 comments on commit 41c1242

Please sign in to comment.