feat: add onboarding and user invitations

This commit is contained in:
Syahdan 2026-08-07 19:53:11 +07:00
parent 24351eb897
commit 762cfe2b16
37 changed files with 5208 additions and 384 deletions

View file

@ -17,6 +17,17 @@ export function createAuth() {
trustedOrigins: [env.CORS_ORIGIN],
emailAndPassword: {
enabled: true,
disableSignUp: true,
},
user: {
additionalFields: {
mustChangePassword: {
type: "boolean",
required: false,
defaultValue: false,
input: false,
},
},
},
secret: env.BETTER_AUTH_SECRET,
baseURL: env.BETTER_AUTH_URL,