@nauth-toolkit/storage-redis
v0.2.5
Published
Redis session storage for nauth-toolkit — supports Redis and Dragonfly
Maintainers
Readme
@nauth-toolkit/storage-redis
Redis storage adapter for nauth-toolkit.
Stores rate limit counters, account lockout state, and distributed locks in Redis. Compatible with Redis and Dragonfly. Designed for production deployments that need fast lookups and horizontal scaling.
Part of nauth-toolkit. Requires
@nauth-toolkit/core.
Install
npm install @nauth-toolkit/storage-redisUsage
import { RedisStorageAdapter } from '@nauth-toolkit/storage-redis';
const nauth = await NAuth.create({
config: {
...authConfig,
storageAdapter: new RedisStorageAdapter(process.env.REDIS_URL),
},
dataSource,
adapter: new ExpressAdapter(),
});Uses the redis (node-redis) package.
Also available
| Package | Purpose |
| --- | --- |
| @nauth-toolkit/storage-database | Database-backed storage — no Redis required |
See the full package list in the core README.
Free to use. See license.
