[PR #5916] chore: support stateless without any configuration #14566

Closed
opened 2026-04-13 09:31:50 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5916

State: closed
Merged: Yes


Summary by cubic

Enable stateless session mode automatically when no database is configured, with secure cookie/JWE and OAuth state defaults. Updates the demo and docs to support zero-config stateless usage.

  • New Features

    • Auto-enable stateless when database is not provided.
    • Default session.cookieCache to enabled, JWE, and refresh.
    • Default oauthConfig.storeStateStrategy to cookie.
    • Demo switches to better-auth/minimal and removes extra config.
    • Removed the "no database" memory adapter warning.
  • Docs

    • Updated stateless guide: zero-config behavior, manual setup, and session invalidation via cookieCache.version.
    • Added “Signup disabled” error page with guidance to use database hooks in stateless mode.
    • Linked the new error in the errors index.

Written for commit 7e5ff951e9. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5916 **State:** closed **Merged:** Yes --- <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Enable stateless session mode automatically when no database is configured, with secure cookie/JWE and OAuth state defaults. Updates the demo and docs to support zero-config stateless usage. - **New Features** - Auto-enable stateless when `database` is not provided. - Default `session.cookieCache` to enabled, JWE, and refresh. - Default `oauthConfig.storeStateStrategy` to `cookie`. - Demo switches to `better-auth/minimal` and removes extra config. - Removed the "no database" memory adapter warning. - **Docs** - Updated stateless guide: zero-config behavior, manual setup, and session invalidation via `cookieCache.version`. - Added “Signup disabled” error page with guidance to use database hooks in stateless mode. - Linked the new error in the errors index. <sup>Written for commit 7e5ff951e9d18c2c66a75ed92de722569aa0aefc. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:31:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14566