mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-27 09:32:20 -05:00
* fix consent not able to be accepted if state is empty * chore: fix lint --------- Co-authored-by: Bereket Engida <bekacru@gmail.com>
13 lines
304 B
TypeScript
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()],
|
|
});
|