mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
fix(api): 🐛 Correctly use Hono primitives in OpenID redirect
This commit is contained in:
parent
7f8ade5fc1
commit
e68832683f
|
|
@ -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…
Reference in a new issue