fix(api): 🐛 Only decode URI, not full URI component, in application's redirect_url

This commit is contained in:
Jesse Wierzbinski 2024-09-04 23:31:58 +02:00
parent 53184bbe99
commit d63196b5ee
No known key found for this signature in database
4 changed files with 6 additions and 11 deletions

View file

@ -112,10 +112,7 @@ export default apiRoute((app) =>
where: (token, { eq, and }) =>
and(
eq(token.code, code),
eq(
token.redirectUri,
decodeURIComponent(redirect_uri),
),
eq(token.redirectUri, decodeURI(redirect_uri)),
eq(token.clientId, client_id),
),
});