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
|
// Redirect back to application
|
||||||
return context.redirect(
|
return context.redirect(
|
||||||
`${redirect_uri}?${new URLSearchParams({
|
encodeURI(
|
||||||
code,
|
`${redirect_uri}?${new URLSearchParams({
|
||||||
}).toString()}`,
|
code,
|
||||||
|
}).toString()}`,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue