1.0.6 • Published 1 year ago

lucia-redis-adapter v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago