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

scim/installation

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

SCIM plugin installation package

Install the SCIM plugin using the package @better-auth/scim.

SCIM plugin basic setup in auth.ts

Import scim from @better-auth/scim and add it to the plugins array in betterAuth configuration. Example: const auth = betterAuth({ plugins: [scim()] })

SCIM HTTP methods required

SCIM requires POST, GET, PUT, PATCH, and DELETE HTTP methods to be supported by the server.

SCIM handler export for Next.js

For Next.js, export POST, GET, PUT, PATCH, DELETE from toNextJsHandler(auth) in the route handler at api/auth/[...all]/route.ts.

SCIM handler export for Solid Start

For Solid Start, export GET, POST, PUT, PATCH, DELETE from toSolidStartHandler(auth) in the route handler at routes/api/auth/*auth.ts.

SCIM database migration

After installing the SCIM plugin, run npx auth migrate or npx auth generate to add necessary fields and tables to the database.

Give your agent this brain