/opt/canhelp/node_modules/better-auth/dist/context
NameSizeModeActions
create-context.mjs104120644editdlrm
create-context.mjs.map182690644editdlrm
helpers.mjs40870644editdlrm
helpers.mjs.map81980644editdlrm
init-minimal.mjs9130644editdlrm
init-minimal.mjs.map15400644editdlrm
init.mjs9640644editdlrm
init.mjs.map16970644editdlrm
secret-utils.mjs27820644editdlrm
secret-utils.mjs.map51510644editdlrm
Edit: /opt/canhelp/node_modules/better-auth/dist/context/init-minimal.mjs (913B)
import { getBaseAdapter } from "../db/adapter-base.mjs"; import { createAuthContext } from "./create-context.mjs"; import { BetterAuthError } from "@better-auth/core/error"; //#region src/context/init-minimal.ts const initMinimal = async (options) => { const adapter = await getBaseAdapter(options, async () => { throw new BetterAuthError("Direct database connection requires Kysely. Please use `better-auth` instead of `better-auth/minimal`, or provide an adapter (drizzleAdapter, prismaAdapter, etc.)"); }); const getDatabaseType = (_database) => "unknown"; const ctx = await createAuthContext(adapter, options, getDatabaseType); ctx.runMigrations = async function() { throw new BetterAuthError("Migrations are not supported in 'better-auth/minimal'. Please use 'better-auth' for migration support."); }; return ctx; }; //#endregion export { initMinimal }; //# sourceMappingURL=init-minimal.mjs.map