Normalize
Every release of @checodo/better-auth-normalize, newest first.
@checodo/better-auth-normalize · Normalize docs · All plugins
0.2.0
Minor Changes
-
2e6b989: First release: email and phone number normalization.
emailNormalization()(/email): stores the address an email reaches inuser.normalizedEmail(unique): trimmed, lowercased, and the tags (and Gmail's dots) that Gmail, Outlook, iCloud, Proton, and Fastmail ignore removed, or+tagsat every domain withsubaddressing: "all". A second account for the same inbox is refused on every way of creating a user or changing an email, with better-auth's own answer for an existing email (USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL, or, where better-auth hides existing users, its success-shaped response andonExistingUserSignUp).allowNormalizedSignInlets people sign in with any form of their address.backfillNormalizedEmailsfills existing users a batch at a time and reports inboxes with two accounts. With the audit log, refusals are recorded asnormalize.email-alias-refused.phoneNormalization()(/phone): stores every number of better-auth'sphoneNumberplugin in E.164 and refuses invalid ones (INVALID_PHONE_NUMBER), withdefaultCountryfor national numbers.