feat: admin system with invite-only registration

This commit is contained in:
2026-01-28 21:39:31 +00:00
parent c4990af6e4
commit c6d9f249ce
5 changed files with 283 additions and 0 deletions

View File

@@ -17,6 +17,15 @@ export const auth = betterAuth({
plugins: [
bearer(), // Enable bearer token auth for mobile apps
],
user: {
additionalFields: {
role: {
type: 'string',
defaultValue: 'user',
input: false, // Don't allow setting via sign-up
},
},
},
emailAndPassword: {
enabled: true,
requireEmailVerification: false, // Enable later for production