mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(api): 🐛 Encode redirect URI
This commit is contained in:
parent
e68832683f
commit
ac906acbe2
|
|
@ -76,9 +76,11 @@ export default apiRoute((app) =>
|
|||
|
||||
// Redirect back to application
|
||||
return context.redirect(
|
||||
`${redirect_uri}?${new URLSearchParams({
|
||||
code,
|
||||
}).toString()}`,
|
||||
encodeURI(
|
||||
`${redirect_uri}?${new URLSearchParams({
|
||||
code,
|
||||
}).toString()}`,
|
||||
),
|
||||
);
|
||||
}),
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue