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