diff --git a/services/mana-auth/src/auth/better-auth.config.ts b/services/mana-auth/src/auth/better-auth.config.ts index 006e7a953..950da2542 100644 --- a/services/mana-auth/src/auth/better-auth.config.ts +++ b/services/mana-auth/src/auth/better-auth.config.ts @@ -112,6 +112,17 @@ export function createBetterAuth(databaseUrl: string) { }, }), + // Custom user fields (must be declared so Better Auth includes them in the user object) + user: { + additionalFields: { + accessTier: { + type: 'string', + defaultValue: 'public', + input: false, // Not settable via sign-up + }, + }, + }, + // Email/password authentication with password reset emailAndPassword: { enabled: true,