Files
better-auth/dev/bun/auth.ts
Zach Silveira 001bfab3ad fix(oidc-provider): consent should be able to be accepted if state is empty (#2723)
* fix consent not able to be accepted if state is empty

* chore: fix lint

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-05-20 13:26:59 -07:00

13 lines
304 B
TypeScript

import { betterAuth } from "better-auth";
import { twoFactor } from "better-auth/plugins";
import Database from "bun:sqlite";
export const auth = betterAuth({
baseURL: "http://localhost:4000",
database: new Database("./auth.db"),
emailAndPassword: {
enabled: true,
},
plugins: [twoFactor()],
});