A favicon of Better Auth

Better Auth

Framework-agnostic authentication and authorization library for TypeScript, for developers who need more than a login form without paying a vendor.

Screenshot of Better Auth websiteVisit Better Auth

Authentication in the TypeScript ecosystem is a half solved problem, in the view of Better Auth's author, and this library is the answer he built: a framework for authentication and authorization that ties itself to no particular web framework. The alternatives handle a basic login and then ask for a lot of extra code for anything past it, and the usual fallback is to hand the whole problem to a third party service.

The answer here is a plugin ecosystem. The core ships a set of features out of the box, and anything more advanced arrives as a plugin, so a feature that would otherwise be a project of its own becomes a small amount of code.

The README names the ground this is meant to cover.

  • Framework agnostic: no assumption about which TypeScript framework the application is built on.
  • Authorization included: access rules treated as part of the same problem, not a separate library.
  • Two factor authentication: available through the plugin system rather than hand rolled.
  • Multi tenant support: tenancy handled the same way, again as a plugin.

The project is free and open source under the MIT license, with contributions, feature suggestions and issue reports all invited. Security vulnerabilities go through GitHub Security Advisories, where the maintainers say reports are addressed promptly and reporters credited.

Share:
Details:

Auto-fetched from GitHub .

Ad

 

 
 
 
 

Open source alternatives similar to Better Auth:

 

 
 
  • Stars


  • Forks


  • Last commit


 

 
 
  • Stars


  • Forks


  • Last commit


 

 
 
  • Stars


  • Forks


  • Last commit