refactor: migrate authentication from Supabase to Better Auth and update Prisma schema models

This commit is contained in:
Jose Selesan
2026-04-16 20:05:08 -03:00
parent bd30b32b49
commit f158845279
28 changed files with 1275 additions and 608 deletions

View File

@@ -0,0 +1,9 @@
import { Hono } from "hono";
import { auth } from "@/lib/auth";
import { AppEnv } from "@/types/hono";
export const authRoutes = new Hono<AppEnv>();
authRoutes.on(["POST", "GET"], "/api/auth/*", (c) => {
return auth.handler(c.req.raw);
});