# `Sigra.SessionStores.Ecto`
[🔗](https://github.com/sztheory/sigra/blob/v1.20.0/lib/sigra/session_stores/ecto.ex#L1)

Ecto-backed session store implementation.

Stores sessions in the host app's `user_sessions` table using the
generated `UserSession` schema. All token lookups use the SHA-256
hashed token — the raw token is never persisted.

## Required Options

- `:repo` - The Ecto Repo module
- `:session_schema` - The generated UserSession schema module

These are typically passed through from `Sigra.Config`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
