# Better Auth: authentication that lives inside your TypeScript app

Canonical URL: https://geekist.co/github/better-auth-authentication-that-lives-inside-your-typescript-app/
Source repository: https://github.com/better-auth/better-auth
Topics: Full Stack Development

[Stars30.9k](https://github.com/better-auth/better-auth "better-auth/better-auth - Stars: 30.9k")[Forks3.1k](https://github.com/better-auth/better-auth "better-auth/better-auth - Forks: 3.1k")[Updatedtoday](https://github.com/better-auth/better-auth "better-auth/better-auth - Updated: today")[LanguageTypeScript](https://github.com/better-auth/better-auth "better-auth/better-auth - Language: TypeScript")[LicenseMIT](https://github.com/better-auth/better-auth "better-auth/better-auth - License: MIT")

## **What it is**

Authentication starts innocently enough with a sign-in form. Then come password resets, invitations, multiple organisations and the occasional lost device.

[Better Auth](https://geekist.co/?post_type=geek_repo_cur&p=6097) packages those recurring identity jobs into a TypeScript framework that runs within your application. Connect it to your database and mount its server handler in your web framework.

Plugins extend the core with organisation membership, passkeys and multi-factor authentication. You can start with a modest sign-in flow and introduce additional capabilities as your product needs them.

## **What’s new**

Better Auth’s [1.7.28 release on 24 November 2026](https://better-auth.com/changelog) is the version examined in our research. The 1.7 series expands enterprise identity provisioning and requires careful schema migration for existing SCIM installations.

The upstream [1.7.29 changelog](https://geekist.co/?post_type=geek_repo_cur&p=6097) also records fixes for one-time verification codes and for preventing session tokens from appearing in logs when secondary storage fails. These are worth checking before upgrading an identity system; confirm package availability for your chosen version.

## **What else is similar to it**

[**Auth.js**](https://github.com/nextauthjs/next-auth) is another application-level authentication option, especially familiar to developers working with Next.js.

[**Keycloak**](https://github.com/keycloak/keycloak) and [**Logto**](https://github.com/logto-io/logto) take the separate identity-service route. That can make sense if several products need to share a login authority.

## **Why it’s different**

Better Auth’s MIT core lets you keep identity within your product and select the plugins you need. You operate the database and decide how the application protects its resources.

**On Cloudflare D1:** our research found that ordinary sign-in and sessions have different compatibility boundaries from SCIM provisioning, which requires native transactions unavailable in the inspected adapter. Even with the organisations plugin, your API must still check access to the individual tenant’s resources.

## **How to get started**

1.  Choose a database adapter, a supported server framework and a strong authentication secret.
2.  Follow the [installation guide](https://better-auth.com/docs/installation).

1.  Install `better-auth` and create the server auth configuration with your database connection.
2.  Mount its authentication handler and generate or apply the database schema using the documented CLI for your adapter.
3.  Create a client, enable email/password sign-in and test registration, sign-in and sign-out.

1.  Test account recovery, session revocation and unauthorised resource access.
2.  If adding organisation support, verify tenant membership on protected server operations.

**Explore further:** [Documentation](https://better-auth.com/docs) · [Releases](https://geekist.co/?post_type=geek_repo_cur&p=6097) · [GitHub](https://geekist.co/?post_type=geek_repo_cur&p=6097).

