Better Auth is comprehensive authentication library for TypeScript that provides a wide range of features to make authentication easier and more secure.
node:sqlite
– onUpdate
field on db schema generation – @default
and @updatedAt
for prisma generator – defaultNow()
for drizzle timestamp fields – /admin/update-user
role as array - by @alliefitter in https://github.com/better-auth/better-auth/issues/4371 <samp>(6c00b)</samp>info
script - by @himself65 in https://github.com/better-auth/better-auth/issues/4143 <samp>(79311)</samp>x-api-key
for all auth endpoint – onUpdate
not working – string - by **efcf5787** [<samp>( stri)</samp>](https://github.com/better-auth/better-auth/commit/ string[]
(#4219))generate
throws error with default export - by @himself65 in https://github.com/better-auth/better-auth/issues/4113 <samp>(bb634)</samp>ID
- by @himself65 in https://github.com/better-auth/better-auth/issues/4400 <samp>(a6ba8)</samp>disableRedirect
to linkSocial
– $
imports in CLI generate cmd - by @Kinfe123 in https://github.com/better-auth/better-auth/issues/4042 <samp>(9a6a8)</samp>pg
and mysql
import in drizzle schema generator - by @Kinfe123 in https://github.com/better-auth/better-auth/issues/3974 <samp>(68f00)</samp>pg
and mysql
import in drizzle schema generator - by @Kinfe123 in https://github.com/better-auth/better-auth/issues/3974 <samp>(19933)</samp>process
referenced on non-nodejs runtime - by @Kinfe123 in https://github.com/better-auth/better-auth/issues/4007 <samp>(aa19d)</samp>generateId
callback to imply database-generated ID – getUserInfo
to return number type – client
to getAdditionalUserInfoClaim callback - by @grant0417 in https://github.com/better-auth/better-auth/issues/3790 <samp>(b2ac8)</samp>loginHint
to Microsoft oauth URL – ctx
in middleware – exactOptionalPropertyTypes
enabled in ts-config – --yes
option does not work on @better-auth/cli generate
- by @phanect in https://github.com/better-auth/better-auth/issues/3749 <samp>(2d8d0)</samp>allowUserToCreateOrganization
to support custom fields - by @TimurBas in https://github.com/better-auth/better-auth/issues/3600 <samp>(7fa90)</samp>basic
auth - by @Kinfe123 in https://github.com/better-auth/better-auth/issues/3753 <samp>(669ce)</samp>isUsernameAvailable
should validate usernames - by @ping-maxwell in https://github.com/better-auth/better-auth/issues/3680 <samp>(e60f7)</samp>isUsernameAvailable
should validate usernames " - by @Bekacru in https://github.com/better-auth/better-auth/issues/3680 and https://github.com/better-auth/better-auth/issues/3730 <samp>(4d85d)</samp>