Skip to content

Contact LV

lv@dablock.com

Juan Lago (LV) uses your details to reply to enquiries (legitimate interest), fulfil a contract with you, or take steps you request before entering one. Privacy and your rights

Better Auth

App backends

Open-source TypeScript authentication library with official plugins

What is Better Auth?

Provides users, sessions and account linking as a TypeScript library connected to your own database, with passkeys, two-factor authentication, organizations, SSO, SCIM and payment plugins maintained alongside the core.

What is Better Auth used for?

Keep authentication code, schema and session logic in your repository so they can be reviewed and changed like any other feature.

How to get started with Better Auth

Pin plugin versions and test migrations on a copy of the database before upgrading in production.

Upgrading a self-hosted auth library

Read the release notes and plugin documentation for the versions you run, apply migrations to a copy of the database, then test sign-in, password reset, passkeys and any organization flow. A library that runs in your server changes on your schedule, not the vendor’s.

Best for

Teams with backend capacity that want to own the authentication code and data.

Better Auth FAQ

Does Better Auth replace Auth.js?

The Better Auth team maintains Auth.js security patches and recommends Better Auth for new projects, and the Auth.js documentation publishes a migration path. Existing Auth.js applications have no urgent need to move.

Useful resources