mirror of
https://github.com/versia-pub/server.git
synced 2026-01-26 04:06:01 +01:00
fix(api): 🐛 Fix some redirect URIs breaking the oauth redirection code
This commit is contained in:
parent
06e97bbf0a
commit
43544a44da
|
|
@ -299,10 +299,10 @@ export default (app: Hono) =>
|
|||
|
||||
if (state) searchParams.append("state", state);
|
||||
|
||||
redirectUri.search = searchParams.toString();
|
||||
|
||||
return response(null, 302, {
|
||||
Location: `${redirectUri.origin}${
|
||||
redirectUri.pathname
|
||||
}?${searchParams.toString()}`,
|
||||
Location: redirectUri.toString(),
|
||||
"Cache-Control": "no-store",
|
||||
Pragma: "no-cache",
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue