Eliminate all code paths, configuration, and documentation related to running without authentication. Require AUTH_SECRET and BASE_URL at startup, updating middleware, server logic, and runtime checks to assume auth is always enabled. Simplify onboarding, settings, and test helpers to reflect mandatory auth. Update environment examples, Docker and deployment docs, and CI/test configs. Remove no-auth-specific UI flows, test cases, and feature toggles.
6 lines
209 B
TypeScript
6 lines
209 B
TypeScript
import { auth } from "@/lib/server/auth/auth"; // path to your auth file
|
|
import { toNextJsHandler } from "better-auth/next-js";
|
|
|
|
const handlers = toNextJsHandler(auth);
|
|
|
|
export const { POST, GET } = handlers;
|