* Fixes #3218 * Lint * Adds tests to every currently available algorithm * fixes duplicate test names Oversight * Disables EdDSA(Ed448) test for now, removes debug print Will think if the found bug should be addressed in a seperate issue * Drops testing support for Diffie-Hellman algorithms Adds comments why some algorithms are not tested * new tests are for token generation On my local machine all tests passed, but on CI some weird error occurred with `getSession`. Changed `client.getSession` to simply `client.token`. Should consider separate tests for `client.getSession` * More robust tests, checks for failures of called testing functions Tests `signInWithTestUser` and `getTestInstance` for possible failures * Should locate which test fails * removes inline functions They're the reason why errors escaped `it()`! * Fixes 'createKeys' inline function replacement * Adds client tests * Adheres to AI review, skips a duplicate test AI might have hallucinated there but w/e * Final cleanup, `headers` as `var` to infer types correctly * Headers fix I forgot to commit one change when typescript check failed and maybe because of that. Setting headers to `var` breaks tests, so gotta revert
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.
