fix(api): 🐛 Fix some redirect URIs breaking the oauth redirection code

This commit is contained in:
Jesse Wierzbinski 2024-06-07 14:08:27 -10:00
parent 06e97bbf0a
commit 43544a44da
No known key found for this signature in database

View file

@ -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",
});