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

organization/options

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

invitationExpiresIn option

The invitationExpiresIn option is a number specifying how long the invitation link is valid for in seconds. By default it is 48 hours (172800 seconds, equivalent to 2 days).

allowUserToCreateOrganization option

The allowUserToCreateOrganization option is a boolean or function that determines whether a user can create an organization. By default it is true. When set to false, it restricts users from creating organizations. A function receives the User object and returns boolean or Promise<boolean>.

organizationLimit option

The organizationLimit option is a number or function that sets the maximum number of organizations allowed for a user. By default it is unlimited. A function receives the User object and returns boolean or Promise<boolean>, where true means the user has reached their limit (blocking creation) and false means they have not reached their limit (allowing creation).

creatorRole option

The creatorRole option sets the role of the user who creates an organization. By default it is 'owner'. It can also be set to 'admin'.

membershipLimit option

The membershipLimit option is a number or function that sets the maximum number of members allowed in an organization. By default it is 100. A function receives User and Organization objects and returns the limit as a number or Promise<number>.

sendInvitationEmail option

The sendInvitationEmail option is an async function that sends an invitation email to the user. It receives a data object parameter and returns Promise<void>.

cancelPendingInvitationsOnReInvite option

The cancelPendingInvitationsOnReInvite boolean option controls whether pending invitations are canceled if the user is already invited to the organization. By default it is false.

invitationLimit option

The invitationLimit option is a number or function that sets the maximum number of invitations allowed for a user. By default it is 100. A function receives the User object and returns boolean or Promise<boolean>.

requireEmailVerificationOnInvitation option

The requireEmailVerificationOnInvitation option is a boolean or undefined that controls whether email verification is required before recipient invitation calls (acceptInvitation, rejectInvitation, getInvitation). When unset, Better Auth preserves the normal emailed-invitation flow for built-in opaque invitation IDs. It requires verification for externally controlled or predictable invitation IDs such as serial or custom ID generation. Set to true when invitation IDs may be visible outside the invited user's mailbox, when organization invitation lists are exposed to members, or when verified email should be the ownership proof for by-ID invitation actions. Client-side listUserInvitations always requires a verified session email.

Give your agent this brain