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

85Health
SDK npm

react-turnstile

React bindings for Cloudflare Turnstile — a privacy-first CAPTCHA alternative with a declarative component and a full imperative ref API.

856
MIT
Used by 11
89Health
Library npm

casl

Isomorphic JavaScript/TypeScript authorization library for defining and checking fine-grained user permissions.

7,102
MIT
Used by 10
73Health
Tool Composer

Laravel UI

Bootstrap, Vue, and React front-end scaffolding for Laravel applications

2,719
MIT
Used by 10
36Health
Library npm

passport-oauth2

A generic OAuth 2.0 authentication strategy for Passport, the base class most provider-specific Passport login strategies are built on.

617
MIT
Used by 10
97Health
SDK npm

firebase-js-sdk

Google's official client SDK for building web and Node.js apps on Firebase's backend services.

5,153
Apache 2.0
Used by 9
48Health
Library Go

sessions

Cookie and filesystem session management for Go's net/http, with pluggable backends and key rotation.

3,149
BSD 3
Used by 9
37Health
Library npm

node-machine-id

Cross-platform unique machine ID discovery for Node.js, no admin rights required

633
MIT
Used by 9
91Health
SDK npm

workos-node

Official Node.js SDK for the WorkOS API, wrapping SSO, SCIM directory sync, and enterprise user management in a typed client.

226
MIT
Used by 9
83Health
Library Composer

Laravel Socialite

An expressive OAuth 1 & 2 client for Laravel that handles social login boilerplate

5,742
MIT
Used by 8
97Health
SDK npm

@azure/msal-browser

Client-side authentication library for browser SPAs, implementing OAuth 2.0 Authorization Code Flow with PKCE against Microsoft Entra ID.

4,142
MIT
Used by 8
59Health
Library npm

connect-redis

Redis-backed session store for Express and Connect apps, built on express-session's Store interface.

2,822
MIT
Used by 8
92Health
SDK npm

@clerk/backend

The official JavaScript SDK for Clerk's Backend API and JWT session verification.

1,768
MIT
Used by 8
72Health
Library npm

Passport-SAML

SAML 2.0 authentication strategy for Passport, supporting ADFS, Okta, Shibboleth, and OneLogin.

881
MIT
Used by 8
68Health
Library PyPI

argon2-cffi

Secure, high-level password hashing for Python using Argon2

737
MIT
Used by 8
95Health
Framework npm

oidc-provider

Certified OAuth 2.0 and OpenID Connect authorization server you mount into your own Node.js app.

3,838
MIT
Used by 7
89Health
Library Go

jwx

A complete, opinionated Go implementation of the JOSE stack: JWT, JWS, JWE, JWK, and JWA.

2,440
MIT
Used by 7
44Health
Library Go

securecookie

Encodes and decodes authenticated, optionally encrypted cookie values for Go web applications, guarding session data from tampering.

732
BSD 3
Used by 7
84Health
Library npm

node-oauth2-server

Framework-agnostic, RFC 6749/6750-compliant OAuth 2.0 server module for Node.js with native async/await and PKCE support.

448
MIT
Used by 7
49Health
Library Go

ssh

A higher-level, net/http-inspired Go API for building custom SSH servers on top of golang.org/x/crypto/ssh.

4,182
BSD 3
Used by 6
70Health
Library npm

jsrsasign

Pure JavaScript cryptography library for RSA/ECDSA/DSA signing, X.509 certificates, ASN.1, JWS/JWT, and CMS.

3,370
MIT
Used by 6
90Health
Library PyPI

OAuthLib

Generic, spec-compliant OAuth1, OAuth2, and OpenID Connect implementation for Python

2,987
BSD 3
Used by 6
66Health
Library npm

argon2

Node.js bindings to the reference Argon2 password hashing implementation

2,194
MIT
Used by 6
49Health
Library PyPI

python-jose

A JOSE implementation in Python for JWS, JWE, JWK, and JWT signing/encryption

1,759
MIT
Used by 6
46Health
Library npm

keytar

Native Node.js bindings for storing passwords in the OS keychain

1,427
MIT
Used by 6

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