new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Better Auth · Plugins · all subjects

admin/options

7 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Default role option

Configure the default role for a user via admin({defaultRole: "regular"}). Defaults to "user".

Admin roles option

Specify which roles are considered admin roles via admin({adminRoles: ["admin", "superadmin"]}). Defaults to ["admin"]. When using custom access control (ac and roles), adminRoles option is not required; custom roles will have exactly the permissions granted through the access control system. When not using custom access control, only roles in the adminRoles list can perform admin operations.

Admin userIds option

Pass an array of userIds that should be considered as admin via admin({adminUserIds: ["user_id_1", "user_id_2"]}). Defaults to []. Users in this list can perform any admin operation.

Impersonation session duration option

Configure the duration of impersonation sessions in seconds via admin({impersonationSessionDuration: 60 * 60 * 24}). Defaults to 1 hour (3600 seconds).

Default ban reason option

Set the default ban reason for users created by the admin via admin({defaultBanReason: "Spamming"}). Defaults to "No reason".

Default ban expires in option

Set the default ban duration in seconds via admin({defaultBanExpiresIn: 60 * 60 * 24}). Defaults to undefined, meaning bans never expire.

Banned user message option

Customize the message shown when a banned user tries to sign in via admin({bannedUserMessage: "Custom banned user message"}). Defaults to "You have been banned from this application. Please contact support if you believe this is an error."

Give your agent this brain