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

phone-number/api-methods

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

Send OTP endpoint

The /phone-number/send-otp POST endpoint accepts a phoneNumber parameter (string, example: '+1234567890') and sends an OTP code to the specified phone number for verification.

Verify phone number endpoint

The /phone-number/verify POST endpoint verifies a phone number with the following parameters: phoneNumber (string, required, example '+1234567890'), code (string, required, example '123456'), disableSession (boolean, optional, default false) to skip session creation after verification, and updatePhoneNumber (boolean, optional, default false) to update an existing logged-in user's phone number.

Sign in with phone number endpoint

The /sign-in/phone-number POST endpoint signs in a user with the following parameters: phoneNumber (string, required, example '+1234567890'), password (string, required), and rememberMe (boolean, optional, default true). The user must have a corresponding record in the account table with providerId set to 'credential'.

Reset password endpoint

The /phone-number/reset-password POST endpoint resets a user's password with the following parameters: otp (string, required, example '123456'), phoneNumber (string, required, example '+1234567890'), and newPassword (string, required, example 'new-and-secure-password').

Phone number sign-in requires credential provider

To sign in with phone number and password, the user must have a corresponding record in the account table with the providerId set specifically to 'credential'. If migrating from another provider or seeding users manually, ensure this record exists.

Give your agent this brain