feat(auth): restrict admin access to verified Google email
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { toNextJsHandler } from "better-auth/next-js";
|
||||
|
||||
import { getAuth } from "@/lib/auth/server";
|
||||
|
||||
const handlers = toNextJsHandler((request) => getAuth().handler(request));
|
||||
|
||||
export const GET = handlers.GET;
|
||||
export const POST = handlers.POST;
|
||||
export const PATCH = handlers.PATCH;
|
||||
export const PUT = handlers.PUT;
|
||||
export const DELETE = handlers.DELETE;
|
||||
Reference in New Issue
Block a user