{
 "kind": "tool",
 "slug": "passport-jwt",
 "path": "tools/passport-jwt/",
 "name": "Passport JWT",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Auth and security libraries",
   "tools/auth-security/"
  ]
 ],
 "lead": "Passport strategy for authenticating API requests using JSON Web Tokens.",
 "chips": [
  {
   "label": "Auth and security libraries",
   "path": "tools/auth-security/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install passport-jwt"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/mikenicholson/passport-jwt"
  },
  {
   "label": "Website",
   "href": "https://github.com/mikenicholson/passport-jwt"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/mikenicholson/passport-jwt"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Quiet for a year",
   "status": "cond",
   "sub": "Last change Feb 3, 2024",
   "note": "",
   "src": "https://github.com/mikenicholson/passport-jwt"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "13 projects",
   "status": "info",
   "sub": "#42 of 141 in its category",
   "note": "Dependency in 13 public GitHub projects set up for AI coding agents that we scanned (0.2%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Passport JWT does",
   "parts": [
    {
     "t": "prose",
     "text": "Passport strategy for authenticating API requests using JSON Web Tokens."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Passport JWT popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "53",
       "of": "/ 100",
       "l": "Gid Score, #1644 overall"
      },
      {
       "n": "5.7M",
       "l": "downloads a week, npm"
      },
      {
       "n": "1,978",
       "l": "GitHub stars"
      },
      {
       "n": "13",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Passport JWT is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Passport JWT is a dependency in 13 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 39 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is jsonwebtoken (149 projects).",
      "Projects that use it most often also use Passport.js (89.7%), Prettier (79.5%), NestJS (74.4%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "11 projects, 0.3%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "7 projects, 0.2%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "5 projects, 0.2%",
       "v": "Cursor",
       "path": "agents/cursor/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 89.7% of its projects",
       "v": "Passport.js",
       "path": "tools/passport/"
      },
      {
       "l": "In 79.5% of its projects",
       "v": "Prettier",
       "path": "tools/prettier/"
      },
      {
       "l": "In 74.4% of its projects",
       "v": "NestJS",
       "path": "tools/nestjs/"
      },
      {
       "l": "In 71.8% of its projects",
       "v": "ts-node",
       "path": "tools/ts-node/"
      },
      {
       "l": "In 69.2% of its projects",
       "v": "Jest",
       "path": "tools/jest/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "class-transformer",
       "path": "tools/class-transformer/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "class-validator",
       "path": "tools/class-validator/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Passport JWT",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Auth and security libraries",
       "path": "tools/auth-security/",
       "items": [
        {
         "text": "bcryptjs",
         "path": "tools/bcryptjs/"
        },
        {
         "text": "NextAuth.js",
         "path": "tools/next-auth/"
        },
        {
         "text": "cryptography",
         "path": "tools/cryptography/"
        },
        {
         "text": "PyJWT",
         "path": "tools/pyjwt/"
        },
        {
         "text": "Better Auth",
         "path": "tools/better-auth/"
        },
        {
         "text": "DOMPurify",
         "path": "tools/dompurify/"
        },
        {
         "text": "Helmet",
         "path": "tools/helmet/"
        },
        {
         "text": "bcrypt (JavaScript)",
         "path": "tools/bcrypt-npm/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Passport JWT",
       "me": true,
       "facts": [
        "MIT",
        "Gid 53",
        "5.7M/wk"
       ]
      },
      {
       "name": "jsonwebtoken",
       "why": "Create, verify and decode JSON Web Tokens for authentication and secure data transmission.",
       "path": "tools/jsonwebtoken/",
       "facts": [
        "MIT",
        "Gid 79",
        "84.5M/wk"
       ]
      },
      {
       "name": "jose",
       "why": "Comprehensive JWT and JWK handling for Node.js and web runtimes.",
       "path": "tools/jose/",
       "facts": [
        "MIT",
        "Gid 75",
        "244M/wk"
       ]
      },
      {
       "name": "Passport.js",
       "why": "Modular authentication middleware for Node.js supporting OAuth, JWT and local strategies.",
       "path": "tools/passport/",
       "facts": [
        "MIT",
        "Gid 69",
        "10.5M/wk"
       ]
      }
     ],
     "more": "Compare Passport JWT with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install passport-jwt"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Passport JWT yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm passport-jwt"
  ],
  [
   "Category",
   "Auth and security libraries"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "53.0"
  ],
  [
   "Rank in category",
   "#42 of 141"
  ],
  [
   "GitHub",
   "mikenicholson/passport-jwt"
  ],
  [
   "Last change",
   "Feb 3, 2024"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/mikenicholson.png"
}