Skip to content
JS
Package category

Authentication and authorisation

Log users in, issue tokens, manage sessions and permissions.

735 packages4 comparisons

Packages compared

735 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
@epic-web/totp
Create and verify cryptographically secure Time-based One-time Passwords (TOTP) using the HMAC-based One-time Password (HOTP) algorithm.
47.5k---1 year ago
4.0.1
ESM onlyBundledAuthentication and authorisation
passport-twitter
Twitter authentication strategy for Passport.
47.4k+2%-10 years ago
1.0.4
CommonJSNoneAuthentication and authorisation
@clerk/chrome-extension
Clerk SDK for Chrome extensions
47.4k---today
3.1.87
ESM + CommonJSBundledAuthentication and authorisation
passport-google-oauth2
Passport strategy for Google OAuth 2.0
47.2k-0%-7 years ago
0.2.0
CommonJSNoneAuthentication and authorisation
accesscontrol
Role and Attribute based Access Control for Node.js
47.1k-1%-1 day ago
3.1.1
ESM onlyBundledAuthentication and authorisation
passport-twitch-strategy
Twitch (OAuth) authentication strategies for Passport. v5
47k-45%-5 years ago
2.2.0
CommonJSNoneAuthentication and authorisation
@jm18457/kafkajs-msk-iam-authentication-mechanism
Authentication mechanism for AWS MSK IAM for KafkaJS.
44.4k---4 months ago
4.0.0
CommonJSBundledAuthentication and authorisation, Cloud SDKs
react-apple-signin-auth
 Apple signin for React using the official Apple JS SDK
44.4k+31%-3 months ago
1.2.1
ESM + CommonJSBundledAuthentication and authorisation, React
react-google-button
[![NPM version][npm-image]][npm-url] [![Build Status][build-status-image]][build-status-url] [![Coverage][coverage-image]][coverage-url] [![License][license-image]][license-url] [![Code Style][code-style-image]][code-style-url]
43.7k+31%-2 years ago
0.8.0
ESM + CommonJSBundledReact, Authentication and authorisation
@elysiajs/node
Elysia adapter to run Elysia on Node.js
43.6k---7 months ago
1.4.5
ESM + CommonJSBundledAuthentication and authorisation
@atproto-labs/handle-resolver
Isomorphic ATProto handle to DID resolver
43.5k---14 days ago
0.4.9
ESM onlyBundledAuthentication and authorisation
node-2fa
Easy 2-Factor Integration For Node.js
42k+54%-4 years ago
2.0.3
CommonJSBundledAuthentication and authorisation
@fastify/passport
Simple, unobtrusive authentication for Fastify.
41.9k---2 days ago
4.0.3
CommonJSBundledAuthentication and authorisation
@node-ntlm/core
NTLM node utility function
41.6k---3 years ago
0.3.2
CommonJSBundledAuthentication and authorisation
passport-unique-token
Unique Token authentication strategy for Passport.
40.9k+138%-5 years ago
3.0.0
CommonJSBundledAuthentication and authorisation
@atproto/oauth-types
OAuth typing & validation library
40.8k---14 days ago
0.7.6
ESM onlyBundledAuthentication and authorisation
@codetrix-studio/capacitor-google-auth
Google Auth plugin for capacitor.
40.4k---2 years ago
3.4.0-rc.4
CommonJSBundledAuthentication and authorisation
@hapi/basic
Basic authentication plugin
40.1k---3 years ago
7.0.2
CommonJSBundledAuthentication and authorisation
u2f-api
Promisified U2F API for browsers
39.5k+32%-5 years ago
1.2.1
CommonJSBundledAuthentication and authorisation
ng-otp-input
A fully customizable, one-time password input component for the web built with Angular.
38.8k+2%-5 months ago
2.0.10
ESM + CommonJSBundledAngular, Authentication and authorisation
minecraft-protocol
Parse and serialize minecraft packets, plus authentication and encryption.
38.7k+168%-29 days ago
1.68.0
CommonJSBundledAuthentication and authorisation
otp-io
🕖 Typed library to work 2fa via Google Authenticator/Time-based TOTP/Hmac-based HOTP
38.6k+544%-1 year ago
1.2.7
ESM + CommonJSBundledAuthentication and authorisation
@atproto/oauth-client
OAuth client for ATPROTO PDS. This package serves as common base for environment-specific implementations (NodeJS, Browser, React-Native).
37.8k---14 days ago
0.8.7
ESM onlyBundledAuthentication and authorisation
@propelauth/node
<p align="center"> <a href="https://www.propelauth.com?ref=github" target="_blank" align="center"> <img src="https://www.propelauth.com/imgs/lockup.svg" width="200"> </a> </p>
37.4k---1 month ago
2.1.36
ESM + CommonJSBundledAuthentication and authorisation
yggdrasil
Mojang authentication (Yggdrasil) client
37.4k+162%-5 months ago
1.8.0
CommonJSNoneAuthentication and authorisation
better-auth-harmony
Validation and normalization for better-auth
37k+1036%-5 months ago
1.3.2
ESM + CommonJSBundledAuthentication and authorisation, Email
@elysiajs/bearer
Elysia Pplugin for retreiving Bearer token
37k---5 months ago
1.4.4
ESM + CommonJSBundledAuthentication and authorisation
@okta/okta-angular
Angular support for Okta
36.1k---3 months ago
8.0.0
ESM onlyBundledAuthentication and authorisation
@stytch/nextjs
Stytch's official Next.js Library
36.1k---13 days ago
22.3.0
ESM + CommonJSBundledAuthentication and authorisation, React
@auth/sveltekit
Authentication for SvelteKit.
35.5k---2 months ago
1.11.3
ESM onlyBundledAuthentication and authorisation, Svelte
fido2-lib
A library for performing FIDO 2.0 / WebAuthn functionality
35.5k+189%-6 months ago
3.5.9
ESM + CommonJSBundledAuthentication and authorisation
connect-ensure-login
Login session ensuring middleware for Connect.
34.6k+26%-13 years ago
0.1.1
CommonJSNoneAuthentication and authorisation
@axa-fr/oidc-client
OpenID Connect & OAuth authentication using native javascript only, compatible with angular, react, vue, svelte, next, etc.
33.8k---5 days ago
7.29.6
ESM + CommonJSBundledAuthentication and authorisation, React
@ankhorage/contracts
Serializable app, action, theme, auth, and secret-store contracts for Ankhorage.
33.8k---1 day ago
22.8.2
ESM onlyBundledTypeScript tooling, Authentication and authorisation
remix-auth-totp
A Time-Based One-Time Password (TOTP) Authentication Strategy for Remix-Auth.
33.6k+893%-1 year ago
4.0.0
ESM onlyBundledAuthentication and authorisation
@atproto-labs/handle-resolver-node
Node specific ATProto handle to DID resolver
33.4k---14 days ago
0.2.10
ESM onlyBundledAuthentication and authorisation
@axa-fr/oidc-client-service-worker
OpenID Connect & OAuth authentication service worker
33.2k---5 days ago
7.29.6
ESM onlyBundledAuthentication and authorisation
@commercetools/sdk-middleware-auth
Middleware for different authentication flows of commercetools platform API, to use with @commercetools/sdk-client
32.6k---1 year ago
8.0.1
ESM + CommonJSNoneAuthentication and authorisation
@aws/token-generator-for-aws-external-anthropic
A lightweight library for generating short-term bearer tokens for AWS External Anthropic API authentication
32.5k---4 months ago
1.0.0
CommonJSBundledAuthentication and authorisation, Cloud SDKs
@aws-amplify/amplify-category-auth
amplify-cli authentication plugin
32.3k---4 months ago
3.7.28
CommonJSBundledCloud SDKs, Authentication and authorisation
@auth/mongodb-adapter
MongoDB adapter for Auth.js
29.7k---2 months ago
3.11.3
ESM onlyBundledAuthentication and authorisation
react-auth-code-input
One-time password (OTP) React input component, uncontrolled, zero dependencies, fully tested.
28.9k+7%-4 years ago
3.2.1
ESM + CommonJSBundledAuthentication and authorisation, React
react-native-nitro-google-signin
Google Sign-In and One Tap for React Native and Expo — OAuth 2.0 / OpenID Connect with Android Credential Manager and Google Sign-In SDK (iOS). Powered by Nitro Modules.
28.9k--6 days ago
2.3.0
ESM + CommonJSBundledAuthentication and authorisation, React
@atproto/oauth-client-node
ATPROTO OAuth client for the NodeJS
28.8k---14 days ago
0.5.7
ESM onlyBundledAuthentication and authorisation
@clerk/electron-passkeys
Native passkey (WebAuthn) support for Clerk's Electron SDK
28.7k---3 months ago
0.0.3
CommonJSBundledAuthentication and authorisation
scrypt
The scrypt crypto library for NodeJS
28.7k-3%-10 years ago
6.0.3
-NoneCryptography and hashing, Authentication and authorisation
ag-auth
Auth module for SocketCluster
28.4k-7%-10 months ago
2.1.1
CommonJSNoneAuthentication and authorisation
openid
OpenID 1.1/2.0 library for Node.js
28.1k-31%-16 days ago
2.0.18
CommonJSNoneAuthentication and authorisation
passport-gitlab2
GitLab authentication strategy for Passport.
28k+11%-7 years ago
5.0.0
CommonJSNoneAuthentication and authorisation
@fastify/bearer-auth
A Bearer authentication plugin for Fastify
27.2k---1 month ago
10.1.3
CommonJSBundledAuthentication 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.