skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

go-jwt-middleware

Use when securing Go HTTP API endpoints with JWT Bearer token validation, scope/permission checks, or stateless auth. Integrates github.com/auth0/go-jwt-middleware/v3 for REST APIs receiving access tokens from frontends or mobile apps. Also handles DPoP proof-of-possession token binding. Triggers on jwtmiddleware, go-jwt-middleware, Go API auth, JWT validation, CheckJWT.

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/auth0/agent-skills --skill go-jwt-middleware

Overview

What This Skill Does

Protect Go HTTP API endpoints with JWT access token validation using github.com/auth0/go-jwt-middleware/v3. > **Agent instruction:** Before providing SDK setup instructions, fetch the latest release version by running: > ```bash > gh api repos/auth0/go-jwt-middleware/releases/latest --jq '.tag_name' > ``` > Use the returned version in all dependency lines instead of any hardcoded version below.

Application

When to use this Skill

Documentation

Show Skills.md file

Go JWT Middleware Integration

Protect Go HTTP API endpoints with JWT access token validation using github.com/auth0/go-jwt-middleware/v3.

Agent instruction: Before providing SDK setup instructions, fetch the latest release version by running:

gh api repos/auth0/go-jwt-middleware/releases/latest --jq '.tag_name'

Use the returned version in all dependency lines instead of any hardcoded version below.


Prerequisites

  • Go 1.21 or higher
  • Auth0 API configured (not Application - must be API resource)
  • If you don't have Auth0 set up yet, use the auth0-quickstart skill first

When NOT to Use

  • Go server-rendered web applications - Use go-auth0 for session-based web apps
  • Single Page Applications - Use auth0-react, auth0-vue, or auth0-angular for client-side auth
  • Mobile applications - Use auth0-swift, auth0-android, or auth0-react-native
  • Non-Go backends - Use auth0-aspnetcore-api for .NET, express-jwt for Node.js
Lines 1 - 25 of 505

Recommendations

Explore other random skills

All skillsMy patterns