* docs(api-key): move schema section to the bottom * fix: shouldn't refresh a token if access token expires is undefined or null (#3577) * fix: ensure session is added to context when reading from cookie cache (#3578) When session data is present in the cookie, `get-session` was early-returning without adding the session to the context, causing hooks to receive a null session. This change ensures the session is consistently added to the context. * chore: export siwe in better-auth/plugins (#3596) The docs were using this import path, yet `siwe` wasn't exported there. This PR fixes this. * chore: fix cookies test * docs: make client-side vs. server-side explicit (#3603) * docs: fix broken link to ERC-4361 in siwe docs (#3604) * fix(jwt): ensure alg is added to the jwks when generating via /token endpoint (#3601) * fix: Ensure alg is added to the jwks when generating via /token endpoint * chore: resolve linting issues * fix: cast dates from db to Date when using date methods * fix lint --------- Co-authored-by: Bereket Engida <Bekacru@gmail.com> Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com> Co-authored-by: Gagan G <80091397+gaganref@users.noreply.github.com> Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com> Co-authored-by: Justin <127172022+jl33-ai@users.noreply.github.com> Co-authored-by: Fraol Lemecha <fraol0912@gmail.com> Co-authored-by: Elliott Minns <elliott.minns@pm.me>
Better Auth
The most comprehensive authentication library for TypeScript
Learn more »
Discord
·
Website
·
Issues
About the Project
Better Auth is framework-agnostic authentication (and authorization) library for TypeScript. It provides a comprehensive set of features out of the box and includes a plugin ecosystem that simplifies adding advanced functionalities with minimal code in short amount of time. Whether you need 2FA, multi-tenant support, or other complex features. It lets you focus on building your actual application instead of reinventing the wheel.
Why Better Auth
Authentication in the TypeScript ecosystem is a half-solved problem. Other open-source libraries often requires a lot of additional code for anything beyond basic authentication. Rather than just pushing third-party services as the solution, I believe we can do better as a community—hence, Better Auth.
Contribution
Better Auth is free and open source project licensed under the MIT License. You are free to do whatever you want with it.
You could help continuing its development by:
Security
If you discover a security vulnerability within Better Auth, please send an e-mail to security@better-auth.com.
All reports will be promptly addressed, and you'll be credited accordingly.
