refactor: integrate Better-Auth for authentication and remove Supabase dependencies
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { Hono } from "hono";
|
||||
import { auth } from "@/lib/auth";
|
||||
import { AppEnv } from "@/types/hono";
|
||||
import { auth } from '@/lib/auth';
|
||||
import { AppEnv } from '@/types/hono';
|
||||
import { Hono } from 'hono';
|
||||
|
||||
export const authRoutes = new Hono<AppEnv>();
|
||||
|
||||
authRoutes.on(["POST", "GET"], "/api/auth/*", (c) => {
|
||||
return auth.handler(c.req.raw);
|
||||
authRoutes.on(['POST', 'GET'], '/api/auth/*', (c) => {
|
||||
return auth.handler(c.req.raw);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user