mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): 🐛 Fix some redirect URIs breaking the oauth redirection code
This commit is contained in:
parent
06e97bbf0a
commit
43544a44da
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue