80trust / 100
Jwt Verify
by Tanod utilpeek in Security & trust
x402 APIPassing, checked 48 min ago
utilpeek (Tanod) JWT verifier: signature, expiry, audience and issuer checks with a secret, PEM key or JWK Set. Use when an agent must check a JWT's signature and exp, aud and iss with a secret, a PEM key or a JWK Set.
POST https://tanod.dev/v1/jwt/verify
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 272 ms typical, 783 ms slowest 5%
- Last check
- 48 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://tanod.dev/v1/jwt/verify" \
-H "content-type: application/json" \
-d '{"algorithms":["HS256"],"audience":"my-api","issuer":"https://issuer.example","leeway_seconds":30,"secret":"example-secret-0123456789-abcdefghij","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyLTEiLCJpc3MiOiJodHRwczovL2lzc3Vlci5leGFtcGxlIiwiYXVkIjoibXktYXBpIn0.Bs7wb0VmtI_D9e_qlTg31APe-kCTDCuSKUIuEPRf3BY"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Fjwt%2Fverify
const res = await pay("https://tanod.dev/v1/jwt/verify", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"algorithms":["HS256"],"audience":"my-api","issuer":"https://issuer.example","leeway_seconds":30,"secret":"example-secret-0123456789-abcdefghij","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyLTEiLCJpc3MiOiJodHRwczovL2lzc3Vlci5leGFtcGxlIiwiYXVkIjoibXktYXBpIn0.Bs7wb0VmtI_D9e_qlTg31APe-kCTDCuSKUIuEPRf3BY"}),
});
console.log(await res.json());Example input
{
"algorithms": [
"HS256"
],
"audience": "my-api",
"issuer": "https://issuer.example",
"leeway_seconds": 30,
"secret": "example-secret-0123456789-abcdefghij",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyLTEiLCJpc3MiOiJodHRwczovL2lzc3Vlci5leGFtcGxlIiwiYXVkIjoibXktYXBpIn0.Bs7wb0VmtI_D9e_qlTg31APe-kCTDCuSKUIuEPRf3BY"
}Example output
{
"alg": "HS256",
"detail": "the signature does not match this key",
"key_source": "secret",
"kid": null,
"note": "Signature and the claims you asked about were checked with PyJWT. Algorithm none is refused, and the accepted algorithms follow the key type. exp, nbf and iat are checked; aud and iss when given.",
"reason": "bad_signature",
"valid": false
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 48 min ago | Passed | 402 | 783 ms | $0.001 |
| 4 h ago | Passed | 402 | 271 ms | $0.001 |
| 9 h ago | Passed | 402 | 266 ms | $0.001 |
| 12 h ago | Passed | 402 | 275 ms | $0.001 |
| 16 h ago | Passed | 402 | 268 ms | $0.001 |
| 19 h ago | Passed | 402 | 1.2 s | $0.001 |
| 23 h ago | Passed | 402 | 281 ms | $0.001 |
| 28 h ago | Passed | 402 | 272 ms | $0.001 |