mirror of
https://github.com/versia-pub/server.git
synced 2026-01-26 12:16: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);
|
if (state) searchParams.append("state", state);
|
||||||
|
|
||||||
|
redirectUri.search = searchParams.toString();
|
||||||
|
|
||||||
return response(null, 302, {
|
return response(null, 302, {
|
||||||
Location: `${redirectUri.origin}${
|
Location: redirectUri.toString(),
|
||||||
redirectUri.pathname
|
|
||||||
}?${searchParams.toString()}`,
|
|
||||||
"Cache-Control": "no-store",
|
"Cache-Control": "no-store",
|
||||||
Pragma: "no-cache",
|
Pragma: "no-cache",
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue