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

username/installation

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

Username plugin installation - server setup

To add the username plugin to Better Auth, import it from 'better-auth/plugins' and add it to the plugins array in the betterAuth configuration. The emailAndPassword authenticator must be enabled with enabled: true. Example: import { username } from 'better-auth/plugins'; then add plugins: [username()] to the betterAuth config.

Username plugin installation - client setup

To add the username plugin to the client, import usernameClient from 'better-auth/client/plugins' and add it to the plugins array in createAuthClient. Example: import { usernameClient } from 'better-auth/client/plugins'; then add plugins: [usernameClient()] to createAuthClient config.

Username plugin database migration

After adding the username plugin, run 'npx auth migrate' to automatically add necessary fields and tables to the database, or 'npx auth generate' to generate the schema for manual addition.

Give your agent this brain