Packages

Authentication & Authorization Packages

Authentication, authorization, and identity/session libraries for handling login, permissions, and access control securely (JWT, Passport, Sanctum).

288 packages

Packages in Authentication & Authorization

46Health
Library npm

jsonwebtoken

The de facto Node.js library for signing, verifying, and decoding JSON Web Tokens.

18,184
MIT
Used by 91
88Health
Library npm

jose

Zero-dependency JWT, JWS, JWE, and JWK toolkit for Node.js, browsers, and edge runtimes.

7,868
MIT
Used by 66
71Health
Library Go

jwt

A zero-dependency Go implementation of JSON Web Tokens (JWT) with pluggable HMAC, RSA, RSA-PSS, ECDSA, and Ed25519 signing methods.

9,266
MIT
Used by 60
49Health
Library npm

cookie-parser

Express middleware that parses HTTP Cookie headers into req.cookies, with support for signed and JSON-encoded cookie values.

2,033
MIT
Used by 51
53Health
Library npm

bcrypt.js

A zero-dependency, pure JavaScript implementation of bcrypt for hashing and verifying passwords in Node.js and the browser.

3,795
BSD 3
Used by 50
95Health
SDK Go

AWS SDK for Go v2

The official AWS SDK for Go — type-safe, modular clients for every AWS service.

3,684
Apache 2.0
Used by 45
87Health
Library PyPI

PyJWT

A Python implementation of RFC 7519 for encoding, decoding, and verifying JSON Web Tokens.

5,722
MIT
Used by 44
91Health
Framework npm

Better Auth

The most comprehensive, framework-agnostic authentication and authorization framework for TypeScript.

30,631
MIT
Used by 37
98Health
Library PyPI

google-auth

The foundational Python library for authenticating to Google Cloud and Google APIs with OAuth2, service accounts, and Application Default Credentials.

5,415
Apache 2.0
Used by 37
47Health
Library npm

bcrypt

Battle-tested password hashing for Node.js using the adaptive bcrypt algorithm.

7,805
MIT
Used by 34
96Health
SDK npm

google-api-nodejs-client

Google's officially supported Node.js client library for calling hundreds of Google APIs with built-in OAuth 2.0, API key, and service-account auth.

12,287
Apache 2.0
Used by 33
43Health
Library npm

passport

Simple, unobtrusive authentication middleware for Node.js with 480+ pluggable strategies.

23,522
MIT
Used by 30
65Health
Library npm

cookie

Basic HTTP cookie parser and serializer for HTTP servers, with zero dependencies and full RFC 6265 support.

1,538
MIT
Used by 30
85Health
Library npm

express-rate-limit

Basic IP rate-limiting middleware for Express to throttle repeated requests and protect public APIs and sensitive endpoints.

3,316
MIT
Used by 29
63Health
Library Go

go-oidc

A Go client library for OpenID Connect, built on top of golang.org/x/oauth2.

2,502
Apache 2.0
Used by 27
97Health
SDK npm

@azure/identity

Microsoft Entra ID credential library that authenticates every Azure SDK client, from managed identity in production to CLI and browser login in development.

2,303
MIT
Used by 27
58Health
Library npm

NextAuth.js

Open-source authentication for Next.js with OAuth, OIDC, email, and passkey sign-in.

28,374
Other
Used by 26
94Health
SDK npm

supabase-js

The official isomorphic JavaScript SDK for Supabase — database, auth, realtime, storage, and edge functions in one client.

4,611
MIT
Used by 26
91Health
Library npm

openid-client

Certified OAuth 2 and OpenID Connect client for every modern JavaScript runtime.

2,442
MIT
Used by 24
64Health
Library npm

express-session

Simple, pluggable session middleware for Express that signs session IDs into a cookie and delegates data storage to any compatible store.

6,357
MIT
Used by 23
59Health
Library npm

jwt-decode

A lightweight TypeScript library for decoding JSON Web Token payloads and headers in the browser and Node.js.

3,400
MIT
Used by 23
83Health
Library npm

otplib

TypeScript-first TOTP and HOTP library with a pluggable crypto/base32 architecture for Node, Bun, Deno, and browsers.

2,306
MIT
Used by 22
42Health
Library npm

passport-local

Passport strategy for authenticating users with a username and password in Node.js and Express applications.

2,754
MIT
Used by 20
83Health
Library Go

go-jose

The canonical Go implementation of JSON Web Encryption, Signature, and Token standards (JWE, JWS, JWT).

545
Apache 2.0
Used by 20

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers