mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
fix(api): 🐛 Only decode URI, not full URI component, in application's redirect_url
This commit is contained in:
parent
53184bbe99
commit
d63196b5ee
4 changed files with 6 additions and 11 deletions
|
|
@ -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),
|
||||
),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue