mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-08 20:37:44 +00:00
feat: add onError and throw error options for APIError (#162)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { betterAuth } from "better-auth";
|
||||
import { prismaAdapter } from "better-auth/adapters/prisma";
|
||||
import { twoFactor } from "better-auth/plugins";
|
||||
|
||||
export const auth = betterAuth({
|
||||
baseURL: "http://localhost:4000",
|
||||
database: prismaAdapter(
|
||||
{},
|
||||
{
|
||||
provider: "sqlite",
|
||||
},
|
||||
),
|
||||
emailAndPassword: {
|
||||
enabled: true,
|
||||
},
|
||||
plugins: [twoFactor()],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user