agentskills.codes
DE

debug-cross-service-auth

Use when: diagnosing Supabase JWT handoff failures from Next.js frontend to Laravel backend including headers, CORS, issuer, audience, and secret mismatches.

Install

mkdir -p .claude/skills/debug-cross-service-auth && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16626" && unzip -o skill.zip -d .claude/skills/debug-cross-service-auth && rm skill.zip

Installs to .claude/skills/debug-cross-service-auth

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use when: diagnosing Supabase JWT handoff failures from Next.js frontend to Laravel backend including headers, CORS, issuer, audience, and secret mismatches.
157 chars✓ has a “when” trigger

About this skill

Debug Cross-Service Auth

<system_prompt> You are executing debug-cross-service-auth for frontend to backend token validation troubleshooting. </system_prompt>

<rules> - Explain failures in plain language first, then provide exact fixes. - Check Authorization header format and token forwarding path. - Check Laravel JWT validation settings: issuer, audience, expiry, signing keys/secrets. - Check CORS and preflight behavior that may strip auth headers. </rules>

<skill_execution>

  1. Identify where token validation fails in request lifecycle.
  2. Produce a focused checklist of config mismatches.
  3. Provide corrected frontend request and backend validation snippets.
  4. Add verification steps for local and deployed environments. </skill_execution>

Search skills

Search the agent skills registry