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

options/user

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

user option fields

The user option has the following fields: modelName (model name for user; default: 'user'), fields (map fields to different column names), additionalFields (additional fields for user table with type specifications), changeEmail (configuration for changing email with enabled, sendChangeEmailConfirmation function, updateEmailWithoutVerification boolean), deleteUser (configuration for user deletion with enabled, sendDeleteAccountVerification function, beforeDelete callback, afterDelete callback).

user example code

import { betterAuth } from "better-auth"; export const auth = betterAuth({ user: { modelName: "users", fields: { email: "emailAddress", name: "fullName" }, additionalFields: { customField: { type: "string", } }, changeEmail: { enabled: true, sendChangeEmailConfirmation: async ({ user, newEmail, url, token }) => { // Send change email confirmation to the old email }, updateEmailWithoutVerification: false // Update email without verification if user is not verified }, deleteUser: { enabled: true, sendDeleteAccountVerification: async ({ user, url, token }) => { // Send delete account verification }, beforeDelete: async (user) => { // Perform actions before user deletion }, afterDelete: async (user) => { // Perform cleanup after user deletion } } }, })

Give your agent this brain