Add new OAuth verification page

This commit is contained in:
Jesse Wierzbinski 2024-03-13 17:02:50 -10:00
parent 626b2cb311
commit 9ec3d96f9d
No known key found for this signature in database
6 changed files with 201 additions and 3 deletions

View file

@ -184,7 +184,15 @@ export default apiRoute(async (req, matchedRoute, extraData) => {
// Redirect back to application
return Response.redirect(
`${flow.application.redirect_uris}?code=${code}`,
`/oauth/redirect?` +
new URLSearchParams({
redirect_uri: flow.application.redirect_uris,
code,
client_id: flow.application.client_id,
application: flow.application.name,
website: flow.application.website ?? "",
scope: flow.application.scopes,
}).toString(),
302
);
});