Skip to content

zero-auth API Documentation v1.6.0


zero-auth API Documentation / createRedisRevocationStore

Function: createRedisRevocationStore() ​

createRedisRevocationStore(redis, ttlSeconds?): RedisRevocationStore

Defined in: packages/zero-auth/src/refresh/redisRevocationStore.ts:44

Creates a Redis-backed refresh-token store for ioredis-compatible clients.

The NX write makes refresh-token consumption atomic across application instances. Family compromise is marked before member revocation, and late family registrations are rejected atomically. The package does not depend on a Redis client; install and own the client in the application.

Parameters ​

redis ​

RedisClient

ttlSeconds? ​

number = ...

Returns ​

RedisRevocationStore