mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-23 15:42:09 -05:00
docs: add explanation of stateless mode to database concept
This commit is contained in:
@@ -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.
|
||||
|
||||
<Callout type="info">
|
||||
Better Auth also works without any database. For more details, see [Stateless Session Management](/docs/concepts/session-management#stateless-session-management).
|
||||
</Callout>
|
||||
|
||||
## CLI
|
||||
|
||||
Better Auth comes with a CLI tool to manage database migrations and generate schema.
|
||||
|
||||
Reference in New Issue
Block a user