All of the changes made will be available here.

Better Auth is comprehensive authentication library for TypeScript that provides a wide range of features to make authentication easier and more secure.


BETTER-AUTH.

v1.1.18

🚀 Features

  • Custom generate token function for magic links – @t3duk
  • Support function for trusted origins configuration – @ping-maxwell @Bekacru
  • admin: Set user password – @Bekacru
  • generic-oauth: OAuth2 link account – @Bekacru
  • organization: Leave organization – @Bekacru
  • username: Add default validation and options for validating username – @Bekacru

🐞 Bug Fixes

  • Remove zod type export from clients – @Bekacru
  • Log error in handleOAuthUserInfo – @Bekacru
  • Use Partial for body and query in InferRoute type – @Bekacru
  • Database hooks should use Partial types to avoid overwriting previous hooks returns – @Bekacru
  • cli: Add on delete cascade constraint to drizzle references – @gregtjack
  • expo: Headers should be retrieved from APIError in OAuth hook – @Bekacru
  • phone-number: Ensure callbackOnVerification is called after user verification – @Bekacru
  • rate-limit: Use the passed model name for rate limiter storage – @Bekacru
    View changes on GitHub

v1.1.17

🐞 Bug Fixes

  • Update user should use id as a reference – @Bekacru
  • Update session cache on email verification – @Bekacru
  • SocialProvider return null if undefined – @baptisteArno
  • Allow partial returns from update hooks – @Bekacru
  • auth: Update cookie handling in anonymous and multi-session plugins – @Bekacru
  • cli: Wrong kysely schema filename – @alfanjauhari
  • drizzle: Drizzle with mysql update breaks on anything other than update by id – @Kinfe123 @Bekacru
  • username: Return email not verified instead of invalid email and password – @Bekacru
    View changes on GitHub

v1.1.16

🚀 Features

  • Add cookie helper for middlewares – @Bekacru
  • Add refetch function for all client hooks – @Bekacru

🐞 Bug Fixes

  • Trigger session update on delete user – @Bekacru
  • Handle converting date on session parsing from cookie cache – @Bekacru
  • Google IdToken auth issuer mismatch – @abegehr
  • Make session table optional when secondary storage is provided – @Bekacru
  • anonymous:
  • drizzle:
    • Incorrect call to getModelName  -  by @chrnorm in https://github.com/better-auth/better-auth/issues/1329 <samp>(9a3e2)</samp>
    • Drizzle adapter failing to return data on create and update when using mysql  -  by @Kinfe123 in https://github.com/better-auth/better-auth/issues/1358 <samp>(4748b)</samp>
  • oidc:
    • Missing content type header on openId configuration endpoint  -  by @Bekacru <samp>(cb91d)</samp>
  • passkey:
  • security:
    View changes on GitHub