Remove annoying nginx logging, fix amber sync, minor patches
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { env } from "node:process";
|
||||
import { betterAuth } from "better-auth";
|
||||
import { drizzleAdapter } from "better-auth/adapters/drizzle";
|
||||
import { admin } from "better-auth/plugins";
|
||||
@@ -27,6 +28,8 @@ export const auth = betterAuth({
|
||||
export async function adminCheck() {
|
||||
"use server";
|
||||
|
||||
if (env.NO_AUTH_CHECK) return null;
|
||||
|
||||
const session = await auth.api.getSession({
|
||||
headers: await headers(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user