resonate-token-authentication-typescript
Installation
SKILL.md
Resonate Token Authentication & Authorization (TypeScript)
Overview
Resonate supports JWT-based authentication and prefix-based authorization to secure access to the Resonate server and control which promises clients can access. This enables multi-tenant systems, role-based access control, and isolation between different workers or services.
Core principle: Generate JWT tokens signed with a private key, configure the Resonate server with the public key, and clients present tokens to authenticate. Optionally use the prefix claim for fine-grained authorization.
Mental Model
Without Auth:
Client → Resonate Server → All Promises Accessible
With Token Auth:
Client + Valid JWT → Resonate Server → All Promises Accessible
Client + Invalid JWT → Resonate Server → REJECTED (401 Unauthorized)