Packages

Authentication & Authorization Packages

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

289 packages

Packages in Authentication & Authorization

47Health
Library npm

jsonwebtoken

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

18,177
MIT
Used by 93
88Health
Library npm

jose

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

7,842
MIT
Used by 66
68Health
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,251
MIT
Used by 62
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,032
MIT
Used by 52
55Health
Library npm

bcrypt.js

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

3,797
BSD 3
Used by 51
95Health
SDK Go

AWS SDK for Go v2

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

3,670
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,719
MIT
Used by 44
89Health
Framework npm

Better Auth

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

30,445
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,412
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,273
Apache 2.0
Used by 33
43Health
Library npm

passport

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

23,520
MIT
Used by 31
48Health
Library npm

cookie

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

1,537
MIT
Used by 31
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,313
MIT
Used by 30
95Health
SDK npm

supabase-js

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

4,598
MIT
Used by 28
62Health
Library Go

go-oidc

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

2,498
Apache 2.0
Used by 28
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,301
MIT
Used by 28
59Health
Library npm

NextAuth.js

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

28,366
Other
Used by 26
62Health
Library npm

jwt-decode

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

3,401
MIT
Used by 25
68Health
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,355
MIT
Used by 24
90Health
Library npm

openid-client

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

2,435
MIT
Used by 24
83Health
Library npm

otplib

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

2,298
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 21
38Health
SDK npm

passport-google-oauth20

Google OAuth 2.0 authentication strategy for Passport.js and Node.js

833
MIT
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