lucia-redis-adapter
v1.0.6
Published
redis adapter for lucia
Downloads
4
Readme
installation
pnpm install lucia-redis-adapter ioredis
you will also need to use oslo and lucia
config
import Redis from 'ioredis'
import {RedisAdapter} from 'lucia-redis-adapter'
export const redis = new Redis()
let adapter = new RedisAdapter(redis)
what this adapter don't provide ?
as lucia v3 internal validation logic requires to fetch user data and we don't store user data on redis we only store user session , so the function
const { session, user } = await lucia.validateSession(sessionId);
will return the user as object with id undefind