resonate-token-authentication-typescript

resonate-token-authentication-typescript is a skill for Claude Code, Codex from resonatehq/resonate-skills. It costs 45 tokens per session (3,404 once invoked), scanned A, original, Apache-2.0.

Instructions for protecting Resonate applications with JSON Web Tokens, signed credentials used to prove a client’s identity. They also use token prefixes to limit which workflow records a client can access.

In plain words
What is it for?
Use it to generate keys and tokens, configure Resonate server authentication, and restrict workers or tenants to workflow names under permitted prefixes.
Why use it?
Without access controls, clients may be able to reach workflows belonging to other users or services. Token and prefix checks support identity verification, tenant separation, and role-based access.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to generate keys and tokens, configure Resonate server authentication, and restrict workers or tenants to workflow names under permitted prefixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/resonatehq/resonate-skills/resonate-token-authentication-typescript
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add resonatehq/resonate-skills --skill resonate-token-authentication-typescript
Clone the repo
git clone --depth 1 https://github.com/resonatehq/resonate-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for resonate-token-authentication-typescript

README.md
[![agentmods](https://agentmods.dev/badge/skills/resonatehq/resonate-skills/resonate-token-authentication-typescript/github.svg)](https://agentmods.dev/skills/resonatehq/resonate-skills/resonate-token-authentication-typescript)
Your own site
<a href="https://agentmods.dev/skills/resonatehq/resonate-skills/resonate-token-authentication-typescript"><img src="https://agentmods.dev/badge/skills/resonatehq/resonate-skills/resonate-token-authentication-typescript/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for resonate-token-authentication-typescript

Your own site · 80×15
<a href="https://agentmods.dev/skills/resonatehq/resonate-skills/resonate-token-authentication-typescript"><img src="https://agentmods.dev/badge/skills/resonatehq/resonate-skills/resonate-token-authentication-typescript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,404 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.03404
Opus 5 $0.00023 $0.01702
Sonnet 5 $0.00009 $0.00681
Haiku 4.5 $0.00005 $0.00340

Measured 12d ago against content hash 4b3752eb0ac2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

resonate-token-authentication-typescript scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

resonate-token-authentication-typescript/SKILL.md · 500 lines

How it starts

The opening of the file, as written. The whole thing — 500 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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)

With Prefix Auth (Multi-Tenant):
  Client + JWT(prefix="tenant-1") → Access only "tenant-1:*" promises
  Client + JWT(prefix="tenant-2") → Access only "tenant-2:*" promises
  Client + JWT(prefix="worker-a") → Access only "worker-a:*" promises

Setup: Generate Keys and Tokens

1. Generate RSA Key Pair

# Generate private key (keep this secret!)
openssl genrsa -out private_key.pem 2048

# Extract public key (share with Resonate server)
openssl rsa -in private_key.pem -pubout -out public_key.pem

Security:

  • Store private_key.pem securely (never commit to git, use secrets manager)
  • public_key.pem can be deployed with server configuration

2. Install JWT CLI Tool

# macOS
brew install mike-engel/jwt-cli/jwt-cli

# Other platforms
# https://github.com/mike-engel/jwt-cli#installation

3. Generate JWT Tokens

Basic authentication token (no prefix):

jwt encode --secret @private_key.pem -A RS256 '{}'

Token with prefix claim (for authorization):

jwt encode --secret @private_key.pem -A RS256 '{"prefix":"tenant-1"}'

Store token in environment variable:

export MY_TOKEN=$(jwt encode --secret @private_key.pem -A RS256 '{"prefix":"worker-1"}')

Read the full file on GitHub · 500 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 500 lines · 45 tokens per session scan A 4b3752eb0ac2

Subscribe to this mod's changes

resonate-token-authentication-typescript is a skill published in the GitHub repository resonatehq/resonate-skills (6 stars, last pushed 20d ago), licensed Apache-2.0. It adds 45 tokens to every session and 3,404 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.