feat: Puente Mayúscula-Minúscula + TTS SpeechSynthesis + E2E fixes

This commit is contained in:
renato97
2026-07-21 15:31:46 -03:00
commit fa8e0c58ce
120 changed files with 16013 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
import { betterAuth } from "better-auth"
import { prismaAdapter } from "better-auth/adapters/prisma"
import { prisma } from "@/lib/db"
export const auth = betterAuth({
database: prismaAdapter(prisma, {
provider: "postgresql",
}),
emailAndPassword: {
enabled: true,
},
user: {
modelName: "Parent",
},
session: {
modelName: "Session",
},
databaseHooks: {
user: {
create: {
after: async (user) => {
const family = await prisma.family.create({ data: { name: "" } })
await prisma.parent.update({
where: { id: user.id },
data: { familyId: family.id },
})
},
},
},
},
})