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

48Health
Library npm

jsonwebtoken

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

18,189
MIT
Used by 93
88Health
Library npm

jose

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

7,812
MIT
Used by 66
65Health
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,230
MIT
Used by 62
50Health
Library npm

cookie-parser

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

2,030
MIT
Used by 52
58Health
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
86Health
Library PyPI

PyJWT

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

5,706
MIT
Used by 44
95Health
SDK Go

AWS SDK for Go v2

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

3,658
Apache 2.0
Used by 44
89Health
Framework npm

Better Auth

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

30,086
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,391
Apache 2.0
Used by 37
48Health
Library npm

bcrypt

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

7,804
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,256
Apache 2.0
Used by 33
43Health
Library npm

passport

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

23,529
MIT
Used by 31
54Health
Library npm

cookie

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

1,535
MIT
Used by 31
81Health
Library npm

express-rate-limit

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

3,305
MIT
Used by 30
94Health
SDK npm

supabase-js

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

4,568
MIT
Used by 28
67Health
Library Go

go-oidc

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

2,480
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,296
MIT
Used by 28
72Health
Library npm

NextAuth.js

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

28,374
Other
Used by 26
60Health
Library npm

jwt-decode

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

3,399
MIT
Used by 25
71Health
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,354
MIT
Used by 24
90Health
Library npm

openid-client

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

2,421
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,290
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

834
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