Working User Authorization Flow

This commit is contained in:
2026-01-26 15:56:10 -06:00
parent 8ee7dc15e5
commit 4524c0258a
8 changed files with 57 additions and 9 deletions
+4 -5
View File
@@ -24,7 +24,7 @@ app.onError((err, ctx) => {
return ctx.json(
apiResponse.zodError(err),
//@ts-ignore
apiResponse.zodError(err).status
apiResponse.zodError(err).status,
);
}
@@ -41,14 +41,13 @@ app.notFound((c) => {
message: `Cannot ${c.req.method.toUpperCase()} ${c.req.path}`,
status: 404,
cause: "Unknown",
})
}),
);
return c.json(response, response.status);
});
v1.route("/teapot", teapot);
v1.route("/auth/redirect", await import("./auth/redirect").then(m => m.default));
v1.route("/auth", require("./routers/authRouter").default);
app.route("/v1", v1);
export default app;
export default app;