export const auth = betterAuth({
appName: process.env.NAME,
database: drizzleAdapter(db, {
provider: "pg",
schema: schema
}),
advanced: {
generateId: false,
},
emailAndPassword: {
enabled: true,
password: {
verify: async (data) => true // For easier debugging
}
},
plugins: [
passkey({
rpID: process.env.RP_ID,
rpName: process.env.NAME,
origin: process.env.ORIGIN,
}),
emailOTP({
sendVerificationOnSignUp: false,
disableSignUp: true,
async sendVerificationOTP({ email, otp, type }) { /* ... */ },
}),
nextCookies()
],
});
export const auth = betterAuth({
appName: process.env.NAME,
database: drizzleAdapter(db, {
provider: "pg",
schema: schema
}),
advanced: {
generateId: false,
},
emailAndPassword: {
enabled: true,
password: {
verify: async (data) => true // For easier debugging
}
},
plugins: [
passkey({
rpID: process.env.RP_ID,
rpName: process.env.NAME,
origin: process.env.ORIGIN,
}),
emailOTP({
sendVerificationOnSignUp: false,
disableSignUp: true,
async sendVerificationOTP({ email, otp, type }) { /* ... */ },
}),
nextCookies()
],
});