fix(api): 🐛 Encode redirect URI

This commit is contained in:
Jesse Wierzbinski 2024-09-04 23:18:08 +02:00
parent e68832683f
commit ac906acbe2
No known key found for this signature in database

View file

@ -76,9 +76,11 @@ export default apiRoute((app) =>
// Redirect back to application // Redirect back to application
return context.redirect( return context.redirect(
encodeURI(
`${redirect_uri}?${new URLSearchParams({ `${redirect_uri}?${new URLSearchParams({
code, code,
}).toString()}`, }).toString()}`,
),
); );
}), }),
); );