Package category
Authentication and authorisation
Log users in, issue tokens, manage sessions and permissions.
735 packages4 comparisons
Packages compared
735 packages
| Package | Weekly downloads | 12-month change | 52 weeks | Gzip | Last release | Module | Types | Categories |
|---|---|---|---|---|---|---|---|---|
| jose JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes | 94.5m | +452% | - | 20 days ago 6.2.12 | ESM only | Bundled | Cloud SDKs, Authentication and authorisation | |
| jwa JWA implementation (supports all JWS algorithms) | 61.4m | +85% | - | 1 year ago 2.0.1 | CommonJS | None | Cryptography and hashing, Authentication and authorisation | |
| ecdsa-sig-formatter Translate ECDSA signatures between ASN.1/DER and JOSE-style concatenation | 53.2m | +108% | - | 7 years ago 1.0.11 | CommonJS | Bundled | Authentication and authorisation, Node.js utilities | |
| jsonwebtoken JSON Web Token implementation (symmetric and asymmetric) | 40.6m | +100% | - | 9 months ago 9.0.3 | CommonJS | None | Authentication and authorisation | |
| pkce-challenge Generate or verify a Proof Key for Code Exchange (PKCE) challenge pair | 37.6m | +590% | - | 7 months ago 6.0.0 | ESM + CommonJS | Bundled | Authentication and authorisation | |
| gtoken Node.js Google Authentication Service Account Tokens | 32.2m | +78% | - | 1 year ago 8.0.0 | ESM + CommonJS | Bundled | Authentication and authorisation | |
| @octokit/auth-token GitHub API token authentication for browsers and Node.js | 25.6m | +93% | - | 1 year ago 6.0.0 | ESM only | Bundled | Authentication and authorisation | |
| @supabase/auth-js Official SDK for Supabase Auth | 20m | +457% | - | 2 days ago 2.117.1 | ESM + CommonJS | Bundled | Authentication and authorisation, Cloud SDKs | |
| registry-auth-token Get the auth token set for an npm registry (if any) | 18.1m | +41% | - | 8 months ago 5.1.1 | CommonJS | Bundled | Authentication and authorisation | |
| @azure/core-auth Provides low-level interfaces and helper methods for authentication in Azure SDK | 14.4m | +93% | - | 2 months ago 1.11.0 | ESM + CommonJS | Bundled | Cloud SDKs, Authentication and authorisation | |
| @azure/msal-node Microsoft Authentication Library for Node | 14.1m | +155% | - | 1 day ago 7.0.0 | ESM + CommonJS | Bundled | Authentication and authorisation | |
| jwt-decode Decode JWT tokens, mostly useful for browser applications. | 13.3m | +55% | - | 2 years ago 4.0.0 | ESM + CommonJS | Bundled | Authentication and authorisation | |
| @azure/identity Provides credential implementations for Azure SDK libraries that can authenticate with Microsoft Entra ID | 11.5m | +138% | - | 10 days ago 4.13.3 | ESM + CommonJS | Bundled | Cloud SDKs, Authentication and authorisation | |
| bcryptjs Optimized bcrypt in plain JavaScript with zero dependencies, with TypeScript support. Compatible to 'bcrypt'. | 9.7m | +145% | - | 10 months ago 3.0.3 | ESM + CommonJS | Bundled | Cryptography and hashing, Authentication and authorisation | |
| @better-auth/utils A collection of utilities for better-auth | 8.8m | +2690% | - | 2 months ago 0.5.0 | ESM + CommonJS | None | Authentication and authorisation | |
| iron-webcrypto a cryptographic utility for sealing-unsealing a JSON object using symmetric key encryption with message integrity verification | 8.5m | +250% | - | 9 months ago 2.0.0 | ESM only | Bundled | Cryptography and hashing, Authentication and authorisation | |
| @octokit/auth-app GitHub App authentication for JavaScript | 6.3m | +254% | - | 23 days ago 8.3.1 | ESM only | Bundled | Authentication and authorisation | |
| @better-auth/core The most comprehensive authentication framework for TypeScript. | 6.1m | +4146% | - | today 1.7.6 | ESM only | Bundled | Authentication and authorisation, TypeScript tooling | |
| @octokit/oauth-methods Set of stateless request methods to create, check, reset, refresh, and delete user access tokens for OAuth and GitHub Apps | 6.1m | +224% | - | 25 days ago 6.0.5 | ESM only | Bundled | Authentication and authorisation | |
| better-auth The most comprehensive authentication framework for TypeScript. | 6.1m | +1716% | - | today 1.7.6 | ESM only | Bundled | Authentication and authorisation, TypeScript tooling | |
| @better-auth/telemetry Telemetry package for Better Auth | 5.9m | +80030% | - | today 1.7.6 | ESM only | Bundled | Authentication and authorisation, TypeScript tooling | |
| @oslojs/encoding Runtime-agnostic library for encoding and decoding data | 5.8m | +460% | - | 2 years ago 1.1.0 | ESM only | Bundled | Authentication and authorisation | |
| passport Simple, unobtrusive authentication for Node.js. | 5.8m | +70% | - | 2 years ago 0.7.0 | CommonJS | None | Authentication and authorisation | |
| @octokit/auth-oauth-app GitHub OAuth App authentication for JavaScript | 5.5m | +218% | - | 23 days ago 9.0.5 | ESM only | Bundled | Authentication and authorisation | |
| @better-auth/drizzle-adapter Drizzle adapter for Better Auth | 5.5m | - | - | today 1.7.6 | ESM only | Bundled | Authentication and authorisation, TypeScript tooling | |
| @better-auth/kysely-adapter Kysely adapter for Better Auth | 5.5m | - | - | today 1.7.6 | ESM only | Bundled | Authentication and authorisation, TypeScript tooling | |
| @better-auth/memory-adapter Memory adapter for Better Auth | 5.5m | - | - | today 1.7.6 | ESM only | Bundled | Authentication and authorisation, TypeScript tooling | |
| @better-auth/prisma-adapter Prisma adapter for Better Auth | 5.5m | - | - | today 1.7.6 | ESM only | Bundled | Authentication and authorisation, TypeScript tooling | |
| @better-auth/mongo-adapter Mongo adapter for Better Auth | 5.5m | - | - | today 1.7.6 | ESM only | Bundled | Authentication and authorisation, TypeScript tooling | |
| universal-github-app-jwt Calculate GitHub App bearer tokens for Node & modern browsers | 5.2m | +228% | - | 1 year ago 2.2.2 | ESM only | Bundled | Authentication and authorisation | |
| bcrypt A bcrypt library for NodeJS. | 4.5m | +82% | - | 1 year ago 6.0.0 | CommonJS | None | Cryptography and hashing, Authentication and authorisation | |
| next-auth Authentication for Next.js | 4.4m | +148% | - | 2 months ago 4.24.15 | ESM + CommonJS | Bundled | Authentication and authorisation, React | |
| oauth Library for interacting with OAuth 1.0, 1.0A, 2 and Echo. Provides simplified client access and allows for construction of more complex apis and OAuth providers. | 4.4m | +78% | - | 1 year ago 0.10.2 | CommonJS | None | Authentication and authorisation | |
| proxy-agent-negotiate Negotiate/SPNEGO proxy authentication for proxy-agents | 4.4m | - | - | 3 months ago 1.1.0 | ESM only | Bundled | Authentication and authorisation | |
| @octokit/auth-unauthenticated GitHub API token authentication for browsers and Node.js | 3.3m | +164% | - | 23 days ago 7.0.5 | ESM only | Bundled | Authentication and authorisation | |
| @auth/core Authentication for the Web. | 3.2m | +250% | - | 2 months ago 0.41.3 | ESM only | Bundled | Authentication and authorisation | |
| passport-jwt Passport authentication strategy using JSON Web Tokens | 2.9m | +92% | - | 3 years ago 4.0.1 | CommonJS | None | Authentication and authorisation | |
| @slack/oauth Official library for interacting with Slack's Oauth endpoints | 2.9m | +344% | - | 2 months ago 4.0.0 | CommonJS | Bundled | Authentication and authorisation | |
| otpauth One Time Password (HOTP/TOTP) library for Node.js, Deno, Bun and browsers | 1.9m | +198% | - | 21 days ago 9.5.2 | ESM + CommonJS | Bundled | Authentication and authorisation | |
| @clerk/nextjs Clerk SDK for NextJS | 1.8m | +326% | - | today 7.9.7 | ESM + CommonJS | Bundled | Authentication and authorisation, Static site generators and meta-frameworks | |
| hawk HTTP Hawk Authentication Scheme | 1.7m | -2% | - | 2 years ago 9.0.2 | - | - | Authentication and authorisation | |
| passport-local Local username and password authentication strategy for Passport. | 1.6m | +35% | - | 12 years ago 1.0.0 | - | - | Authentication and authorisation | |
| oidc-client-ts OpenID Connect (OIDC) & OAuth2 client library | 1.5m | +196% | - | 6 months ago 3.5.0 | - | - | Authentication and authorisation | |
| auth0 Auth0 Node.js SDK for the Management API v2. | 1.4m | +114% | - | 8 days ago 7.2.0 | - | - | Authentication and authorisation | |
| expo-auth-session Expo module for browser-based authentication | 1.2m | +321% | - | 1 day ago 57.0.13 | - | - | Authentication and authorisation | |
| @hapi/iron Encapsulated tokens (encrypted and mac'ed objects) | 1.2m | - | - | - | 3 years ago 7.0.1 | CommonJS | Bundled | Cryptography and hashing, Authentication and authorisation |
| dpop DPoP (RFC9449) for JavaScript Runtimes | 1.1m | +388% | - | 1 month ago 2.1.2 | ESM only | Bundled | Authentication and authorisation | |
| zxcvbn realistic password strength estimation | 1.1m | +61% | - | 9 years ago 4.4.2 | CommonJS | None | Authentication and authorisation, Security | |
| @react-native-firebase/app A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Sto | 1.1m | - | - | - | 20 days ago 26.4.0 | CommonJS | Bundled | Cloud SDKs, React |
| passport-google-oauth20 Google (OAuth 2.0) authentication strategy for Passport. | 1.1m | +106% | - | 7 years ago 2.0.0 | CommonJS | None | Authentication and authorisation |
12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.
- joseJWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes
- jwaJWA implementation (supports all JWS algorithms)
- ecdsa-sig-formatterTranslate ECDSA signatures between ASN.1/DER and JOSE-style concatenation
- jsonwebtokenJSON Web Token implementation (symmetric and asymmetric)
- pkce-challengeGenerate or verify a Proof Key for Code Exchange (PKCE) challenge pair
- gtokenNode.js Google Authentication Service Account Tokens
- @octokit/auth-tokenGitHub API token authentication for browsers and Node.js
- @supabase/auth-jsOfficial SDK for Supabase Auth
- registry-auth-tokenGet the auth token set for an npm registry (if any)
- @azure/core-authProvides low-level interfaces and helper methods for authentication in Azure SDK
- @azure/msal-nodeMicrosoft Authentication Library for Node
- jwt-decodeDecode JWT tokens, mostly useful for browser applications.
- @azure/identityProvides credential implementations for Azure SDK libraries that can authenticate with Microsoft Entra ID
- bcryptjsOptimized bcrypt in plain JavaScript with zero dependencies, with TypeScript support. Compatible to 'bcrypt'.
- @better-auth/utilsA collection of utilities for better-auth
- iron-webcryptoa cryptographic utility for sealing-unsealing a JSON object using symmetric key encryption with message integrity verification
- @octokit/auth-appGitHub App authentication for JavaScript
- @better-auth/coreThe most comprehensive authentication framework for TypeScript.
- @octokit/oauth-methodsSet of stateless request methods to create, check, reset, refresh, and delete user access tokens for OAuth and GitHub Apps
- better-authThe most comprehensive authentication framework for TypeScript.
- @better-auth/telemetryTelemetry package for Better Auth
- @oslojs/encodingRuntime-agnostic library for encoding and decoding data
- passportSimple, unobtrusive authentication for Node.js.
- @octokit/auth-oauth-appGitHub OAuth App authentication for JavaScript
- @better-auth/drizzle-adapterDrizzle adapter for Better Auth
- @better-auth/kysely-adapterKysely adapter for Better Auth
- @better-auth/memory-adapterMemory adapter for Better Auth
- @better-auth/prisma-adapterPrisma adapter for Better Auth
- @better-auth/mongo-adapterMongo adapter for Better Auth
- universal-github-app-jwtCalculate GitHub App bearer tokens for Node & modern browsers
- bcryptA bcrypt library for NodeJS.
- next-authAuthentication for Next.js
- oauthLibrary for interacting with OAuth 1.0, 1.0A, 2 and Echo. Provides simplified client access and allows for construction of more complex apis and OAuth providers.
- proxy-agent-negotiateNegotiate/SPNEGO proxy authentication for proxy-agents
- @octokit/auth-unauthenticatedGitHub API token authentication for browsers and Node.js
- @auth/coreAuthentication for the Web.
- passport-jwtPassport authentication strategy using JSON Web Tokens
- @slack/oauthOfficial library for interacting with Slack's Oauth endpoints
- otpauthOne Time Password (HOTP/TOTP) library for Node.js, Deno, Bun and browsers
- @clerk/nextjsClerk SDK for NextJS
- hawkHTTP Hawk Authentication Scheme
- passport-localLocal username and password authentication strategy for Passport.
- oidc-client-tsOpenID Connect (OIDC) & OAuth2 client library
- auth0Auth0 Node.js SDK for the Management API v2.
- expo-auth-sessionExpo module for browser-based authentication
- @hapi/ironEncapsulated tokens (encrypted and mac'ed objects)
- dpopDPoP (RFC9449) for JavaScript Runtimes
- zxcvbnrealistic password strength estimation
- @react-native-firebase/appA well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Sto
- passport-google-oauth20Google (OAuth 2.0) authentication strategy for Passport.