mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
fix(api): 🐛 Correctly use Hono primitives in OpenID redirect
This commit is contained in:
parent
7f8ade5fc1
commit
e68832683f
1 changed files with 5 additions and 1 deletions
|
|
@ -75,6 +75,10 @@ export default apiRoute((app) =>
|
||||||
}
|
}
|
||||||
|
|
||||||
// Redirect back to application
|
// Redirect back to application
|
||||||
return Response.redirect(`${redirect_uri}?code=${code}`, 302);
|
return context.redirect(
|
||||||
|
`${redirect_uri}?${new URLSearchParams({
|
||||||
|
code,
|
||||||
|
}).toString()}`,
|
||||||
|
);
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue