Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Apparently Response.redirect does not work with relative paths
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 1e35a11 commit 9bb2d73
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions functions/api/auth/mobile/login.ts
@@ -1,3 +1,8 @@
export async function onRequestGet(context: RequestContext) {
return Response.redirect("/api/auth/oauth");
export async function onRequestGet(_context: RequestContext) {
return new Response(null, {
headers: {
location: "/api/auth/oauth",
},
status: 302,
});
}

0 comments on commit 9bb2d73

Please sign in to comment.