auth0-cc-token-cache

JSON →
library 0.1.0 ·javascript
verified Jun 7, 2026

Minimal Auth0 client credentials token acquisition with Redis caching (v0.1.0). Solves M2M token quota limits by caching tokens in Redis with automatic TTL management. Integrates with the official Auth0 SDK (v5+) and ioredis (v5+). Designed for Node.js >=18. Provides a simple `createTokenClient` factory function returning an async `getAccessToken()` method. Cache key includes `clientId` and `audience`; supports configurable prefix and TTL buffer. Ships TypeScript definitions. Low dependency footprint but requires peer dependencies `auth0` and `ioredis`. Not battle-tested; experimental release.