@ltikit/adapter-redis
v1.0.0-rc.5
Published
Redis / Upstash NonceStore adapter for ltikit.
Downloads
883
Readme
@ltikit/adapter-redis
Redis / Upstash NonceStore adapter for LTIkit — ideal for
serverless, where in-memory state can't enforce single-use nonces across cold invocations. Single-use
is enforced by an atomic GETDEL.
Redis holds the nonce store only. Platforms are durable config — pair this with
@ltikit/adapter-supabase (or your own)
for the PlatformStore. Requires @ltikit/core.
npm i @ltikit/core @ltikit/adapter-redisUsage
import { redisNonceStore, fromUpstash } from '@ltikit/adapter-redis'
import { Redis } from '@upstash/redis'
export const lti = createLti({
keys: staticKeyStore({ /* ... */ }),
nonces: redisNonceStore(fromUpstash(Redis.fromEnv())),
platforms: supabasePlatformStore(client), // or your own
})No hard dependency on any Redis client — redisNonceStore takes a structural RedisLike
(set with TTL + atomic getdel). Ships adapters for the common clients:
import { fromUpstash, fromIoRedis, fromNodeRedis } from '@ltikit/adapter-redis'Docs
Links
Repository · Issues · Need help? — paid setup/integration help available.
MIT
