import type { BetterAuthOptions, InferSession, InferUser } from "better-auth";
import { betterAuth } from "better-auth/minimal";
const authConfig = { ... } satisfies BetterAuthOptions;
export const auth = betterAuth(authConfig);
export type Auth = typeof auth;
export type Session = InferSession<Auth>;
export type User = InferUser<Auth>;
export type AuthData = {
session: Session;
user: User;
} | null;