From 42e81100f65511e5650ebbf9727ce69bb7f8b70f Mon Sep 17 00:00:00 2001 From: Taesu Date: Fri, 21 Nov 2025 01:09:12 +0900 Subject: [PATCH] docs: add explanation of stateless mode to database concept --- docs/content/docs/concepts/database.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/content/docs/concepts/database.mdx b/docs/content/docs/concepts/database.mdx index 5a41b55031..c07e7fe79e 100644 --- a/docs/content/docs/concepts/database.mdx +++ b/docs/content/docs/concepts/database.mdx @@ -5,10 +5,14 @@ description: Learn how to use a database with Better Auth. ## Adapters -Better Auth requires a database connection to store data. The database will be used to store data such as users, sessions, and more. Plugins can also define their own database tables to store data. +Better Auth connects to a database to store data. The database will be used to store data such as users, sessions, and more. Plugins can also define their own database tables to store data. You can pass a database connection to Better Auth by passing a supported database instance in the database options. You can learn more about supported database adapters in the [Other relational databases](/docs/adapters/other-relational-databases) documentation. + +Better Auth also works without any database. For more details, see [Stateless Session Management](/docs/concepts/session-management#stateless-session-management). + + ## CLI Better Auth comes with a CLI tool to manage database migrations and generate schema.