authly-session
Session management and persistence for authly-rs.
This crate provides a flexible session persistence layer with support for multiple backends including SQL (Postgres, MySQL, SQLite) and Redis.
Features
SessionandSessionStoretraits.- SQL Store: Support for Postgres, MySQL, and SQLite via
sqlx. - Redis Store: Session persistence using Redis.
- In-memory Store: Lightweight store for testing and development.
Usage
Add this to your Cargo.toml:
[]
= { = "0.1.0", = ["sqlite"] }
Example: SQLite Session Store
use SqlSessionStore;
use SqlitePool;
async
Part of authly-rs
This crate is part of the authly-rs workspace.