route-tester

Automate cookie-based JWT authentication to test protected API routes.

1|1|Updated Sep 22, 2025
One-click install
npx skills add https://github.com/SkogAI/skillsandknowledge --skill route-tester-skogai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: route-tester
Source: https://github.com/SkogAI/skillsandknowledge/tree/main/.skogix/infrastructure/.claude/skills/route-tester
Command: npx skills add https://github.com/SkogAI/skillsandknowledge --skill route-tester-skogai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers verify protected API routes in their applications by automating cookie-based JWT authentication, reducing manual token handling and debugging time.

Core Features & Use Cases

  • Patterns and utilities for testing authenticated routes across services.
  • A reusable test-auth-route.js script that fetches a refresh token, signs it, and makes authenticated requests with a cookie header.
  • An optional mock authentication workflow for development and testing without Keycloak, including example curl commands.

Quick Start

Use the test-auth-route.js script to exercise a protected endpoint, for example: node scripts/test-auth-route.js http://localhost:3002/api/protected POST '{"action":"status"}' Then verify the response and reproduce with a curl command printed by the script.

Frequently Asked Questions about route-tester

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test API routes protected with cookie-based JWT authentication?▼

To test API routes protected with cookie-based JWT authentication, use a script that fetches a refresh token, signs it, and applies a cookie header to automated requests against your endpoints.

Can I test authenticated API routes without a Keycloak server running?▼

Yes, you can test authenticated API routes without Keycloak by using an optional mock authentication workflow that generates tokens and provides example curl commands for local development.

How do I generate curl commands to manually reproduce authenticated API tests?▼

You can generate curl commands to manually reproduce authenticated API tests by running an automated script that signs tokens and prints curl-ready commands with the correct cookie headers attached.

What is the best way to automate Node.js API testing with refresh tokens?▼

Automating Node.js API testing with refresh tokens is best handled by a reusable script that fetches the token, signs it, and makes authenticated POST requests with the appropriate cookie header.

Why does my protected route test fail when sending a JWT in the header?▼

Your protected route test fails when sending a JWT in the header because cookie-based JWT authentication requires the token in a cookie header rather than a standard authorization header.