© 2026 Hedgehog Software, LLC
admin
betterAuth
role
session.user
export const auth = betterAuth({ database: drizzleAdapter(db, { provider: 'pg', schema, usePlural: true, }), emailAndPassword: { enabled: true, }, plugins: [admin()], });
export const authClient = createAuthClient({ plugins: [inferAdditionalFields<typeof auth>()], });
Property 'role' does not exist on type '{ id: string; name: string; email: string; emailVerified: boolean; createdAt: Date; updatedAt: Date; image?: string | null | undefined; }'.ts(2339)
type Session = Awaited<ReturnType<typeof auth.api.getSession>>; type User = NonNullable<Session>['user'];
session