chore: seminarhof customer project

This commit is contained in:
e2e
2026-06-21 22:23:43 +02:00
commit e0331cbb1c
161 changed files with 18517 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import { betterAuth } from 'better-auth'
import { pikkuBetterAuth } from '#pikku/pikku-types.gen.js'
export const auth = pikkuBetterAuth(async ({ kysely, secrets }) => {
const BETTER_AUTH_SECRET = await secrets.getSecret('BETTER_AUTH_SECRET')
return betterAuth({
secret: BETTER_AUTH_SECRET,
database: { db: kysely as any, type: 'sqlite' },
emailAndPassword: { enabled: true },
advanced: { database: { generateId: 'uuid' } },
user: {
additionalFields: {
role: {
type: 'string',
required: false,
defaultValue: 'client',
input: false,
},
locale: {
type: 'string',
required: false,
defaultValue: 'de',
input: true,
},
},
},
})
})