# Better Auth

Open\-source TypeScript authentication framework with database adapters, session management and optional authentication plugins\.

ID: Q1335 · Revision: 1383

Type: software · License: MIT; hosting, databases, email delivery and external identity providers are separate\.[^license][^install][^email] · Status: active

Website: https://better-auth.com/



Better Auth is an open\-source TypeScript authentication framework that can run within an application or as a separately hosted authentication server\. It provides account and session management, email/password and social sign\-in, with additional functionality through plugins\. For a vibecoder, it offers reusable authentication machinery while keeping integration and operational responsibility in the application's own stack\.[^intro][^comparison]

## Capabilities and substitutions

### Application\-owned authentication — supported

Can run inside the application or as a standalone server with supported database adapters\.[^install][^comparison]

Use case: Application\-controlled authentication in TypeScript web services · Platforms: TypeScript server applications, Web clients · Region: Version, build and integration requirements apply

### Password recovery — limited

Application supplies the email\-sending callback; existing sessions are not revoked on password reset by default\.[^email]

Use case: Application\-controlled authentication in TypeScript web services · Platforms: TypeScript server applications, Web clients · Region: Version, build and integration requirements apply

### Immediate cached\-session revocation — limited

When cookie caching is enabled, other\-device sessions can remain valid until cache expiry unless fresh verification bypasses the cache\.[^session]

Use case: Application\-controlled authentication in TypeScript web services · Platforms: TypeScript server applications, Web clients · Region: Version, build and integration requirements apply

### Built\-in rate limiting — limited

Enabled in production and disabled in development by default; direct server auth\.api calls are outside its client\-request limiter\.[^rate]

Use case: Application\-controlled authentication in TypeScript web services · Platforms: TypeScript server applications, Web clients · Region: Version, build and integration requirements apply

### Firebase\-wide replacement — unsupported

The supported comparison is authentication; the inspected scope does not provide Firebase's database, storage and broader application services\.[^intro][^firebase]

Use case: Application\-controlled authentication in TypeScript web services · Platforms: TypeScript server applications, Web clients · Region: Version, build and integration requirements apply

### [Substitute for Firebase](/firebase) — limited

Candidate for replacing email/password and social\-login responsibilities currently handled by Firebase Authentication in a TypeScript application\. Does not replace the whole Firebase platform or establish drop\-in account/session migration\.[^intro][^install][^firebase]

Use case: Application\-controlled authentication in TypeScript web services · Platforms: TypeScript server applications, Web clients · Region: Version, build and integration requirements apply

## References

[^intro]: [Better Auth introduction](<https://better-auth.com/docs/introduction>) — TypeScript framework, authentication features and plugin scope (vendor; retrieved 2026-10-07T22:38:27Z)

[^license]: [Better Auth source license](<https://github.com/better-auth/better-auth/blob/main/LICENSE.md>) — MIT license (vendor; retrieved 2026-10-07T22:39:04Z)

[^install]: [Better Auth installation](<https://better-auth.com/docs/installation>) — Secret, base URL, database adapters, migrations, route handler and clients (vendor; retrieved 2026-10-07T22:38:27Z)

[^comparison]: [Better Auth comparison](<https://better-auth.com/docs/comparison>) — Embedded or standalone self\-hosted operation and data ownership model; vendor positioning (vendor; retrieved 2026-10-07T22:39:04Z)

[^email]: [Better Auth email and password](<https://better-auth.com/docs/authentication/email-password>) — Explicit enablement, email\-delivery callbacks and password\-reset session revocation (vendor; retrieved 2026-10-07T22:39:04Z)

[^session]: [Better Auth session management](<https://better-auth.com/docs/concepts/session-management>) — Cookie\-cache revocation lag and distinction from JWT plugin tokens (vendor; retrieved 2026-10-07T22:38:40Z)

[^security]: [Better Auth security reference](<https://better-auth.com/docs/reference/security>) — Trusted origins/proxy headers and risks of disabling checks (vendor; retrieved 2026-10-07T22:38:40Z)

[^rate]: [Better Auth rate limiting](<https://better-auth.com/docs/concepts/rate-limit>) — Production/development defaults and auth\.api exclusion (vendor; retrieved 2026-10-07T22:39:04Z)

[^telemetry]: [Better Auth telemetry](<https://better-auth.com/docs/reference/telemetry>) — Optional disabled\-by\-default telemetry and reported metadata (vendor; retrieved 2026-10-07T22:39:04Z)

[^firebase]: [Firebase Authentication](<https://firebase.google.com/docs/auth>) — Managed authentication backend and integration with other Firebase services (vendor; retrieved 2026-10-07T22:38:55Z)

Source revision: https://substitutefor.net/entities/Q1335?revision=1383
