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

error handling & troubleshooting

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

email_doesn't_match error definition

The email_doesn't_match error appears only during OAuth account linking. It occurs when a signed-in user tries to link an OAuth provider account, but the email returned by the provider does not match the email on the currently authenticated user or the email expected for that user. Better Auth blocks the link when emails do not align to prevent accidental cross-account linking or account takeover. This error does not occur during normal OAuth sign-in; it is specific to the linking flow.

email_doesn't_match common causes

The email_doesn't_match error can occur for several reasons: the user is logged into the provider with a different email than their app account (e.g., work vs personal); the provider returns an unverified or secondary email that differs from the app account email; email normalization differences such as case sensitivity or dots/aliases on Gmail cause a mismatch; or the user's email changed in the app or at the provider since the original account was created.

email_doesn't_match resolution: align identities

To resolve an email_doesn't_match error, have the user switch to the correct provider account that uses the same email as their app account. Alternatively, update the app account email to the intended email (if your product allows it) and retry linking.

email_doesn't_match debugging approach

To debug an email_doesn't_match error locally, log the current user's email in your app and the email returned by the provider profile. Inspect whether the provider email is verified or primary and whether any normalization is applied. Confirm which provider credentials (dev/staging/prod) are in use and that the returned identity is the expected one.

Give your agent this brain