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 · all subjects

database & schema

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.

Agent Auth database migration

Run migration or generate schema to add agent, host, grant, and approval tables for Agent Auth plugin. Use either: npx auth migrate or npx auth generate

PlanetScale PostgreSQL connection string format

The PostgreSQL connection string for PlanetScale uses the format: postgresql://<username>:<pa••••••d>@<host>/postgres?sslmode=verify-full. This connection string is saved in the DATABASE_URL environment variable and used in the database field of the auth config.

Generate and migrate Better Auth schema

Generate the Better Auth schema with npx auth generate, then apply it to the PlanetScale database with npx auth migrate. These commands create all required auth tables.

database option

The database option configures database settings for Better Auth. Better Auth supports PostgreSQL, MySQL, and SQLite. Configuration includes dialect, type, and casing options.

advanced.database.defaultFindManyLimit option

The advanced.database.defaultFindManyLimit option sets the default maximum number of records returned by the findMany adapter method. Default: 100.

advanced.database.generateId option

The advanced.database.generateId option controls how record IDs are generated. Accepts a custom function, false (disable generating IDs so database generates them), 'serial' (use database auto-incrementing ID), or 'uuid' (use random UUID). Default is random base62 string.

secondaryStorage option

The secondaryStorage option configures secondary storage used to store session data, verification records, and rate limit data.

Give your agent this brain