10 Best JavaScript Authentication Libraries

List hand-picked by Openbase Experts
Learn More

keycloak-js

Open Source Identity and Access Management For Modern Applications and Services

Apache-2.0
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
12.2K
Weekly Downloads
262K
Last Commit
2mos ago
User Rating
4.8/ 5
6
Top Feedback
pas

passport

Simple, unobtrusive authentication for Node.js.

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
20.2K
Weekly Downloads
1.6M
Last Commit
4mos ago
User Rating
4.4/ 5
116
Top Feedback
16Performant
14Easy to Use
14Highly Customizable

next-auth

Authentication for Next.js

ISC
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
10.1K
Weekly Downloads
163K
Last Commit
3mos ago
User Rating
4.1/ 5
15
Top Feedback
5Highly Customizable
3Great Documentation
3Easy to Use

@auth0/auth0-react

Auth0 SDK for React Single Page Applications (SPA)

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
550
Weekly Downloads
376K
Last Commit
3mos ago
User Rating
5.0/ 5
4
Top Feedback
2Great Documentation
2Easy to Use
2Performant
po

passport-oauth2

OAuth 2.0 authentication strategy for Passport and Node.js.

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
522
Weekly Downloads
457K
Last Commit
8mos ago
User Rating
5.0/ 5
1
Top Feedback
1Easy to Use
ka

keycloak-angular

Easy Keycloak setup for Angular applications.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
524
Weekly Downloads
51.8K
Last Commit
23d ago
User Rating
5.0/ 5
1
Top Feedback

@feathersjs/authentication-jwt

A framework for real-time applications and REST APIs with JavaScript and TypeScript

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
14K
Weekly Downloads
2.4K
Last Commit
2mos ago
User Rating
5.0/ 5
1
Top Feedback

express-jwt

connect/express middleware that validates a JsonWebToken (JWT) and set the req.user with the attributes

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
4.2K
Weekly Downloads
604K
Last Commit
3mos ago
User Rating
4.3/ 5
7
Top Feedback
7Easy to Use
5Performant
3Great Documentation

@auth0/angular-jwt

Helper library for handling JWTs in Angular 2+ apps

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
2.5K
Weekly Downloads
180K
Last Commit
1yr ago
User Rating
5.0/ 5
2
Top Feedback
rnt

react-native-touch-id

React Native authentication with the native Touch ID popup.

ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
1.4K
Weekly Downloads
17.8K
Last Commit
3yrs ago
User Rating
5.0/ 5
1
Top Feedback

@azure/msal-react

Microsoft Authentication Library (MSAL) for JS

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
2.4K
Weekly Downloads
118K
Last Commit
3mos ago

expo-local-authentication

An open-source platform for making universal native apps with React. Expo runs on Android, iOS, and the web.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
16.6K
Weekly Downloads
36.5K
Last Commit
3mos ago
sj

socketio-jwt

authenticate socket.io connections using JWTs

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
Weekly Downloads
19.7K
Last Commit
User Rating
4.0/ 5
2
Top Feedback
2Great Documentation
1Bleeding Edge
va

@websanova/vue-auth

A simple light-weight authentication library for Vue.js

Unknown
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
2.3K
Weekly Downloads
7.1K
Last Commit
3mos ago
User Rating
2.0/ 5
1
Top Feedback
2Poor Documentation
aao

angular-auth-oidc-client

npm package for OpenID Connect, OAuth Code Flow with PKCE, Refresh tokens, Implicit Flow

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
814
Weekly Downloads
27.5K
Last Commit
3mos ago

@auth0/nextjs-auth0

Next.js SDK for signing in with Auth0

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
1.2K
Weekly Downloads
229K
Last Commit
3mos ago

next-firebase-auth

Simple Firebase authentication for all Next.js rendering strategies

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
758
Weekly Downloads
6.5K
Last Commit
2mos ago
User Rating
1.0/ 5
1
Top Feedback
na

nuxt-auth

Authentication module for Nuxt.js (W.I.P)

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
4
Weekly Downloads
116
Last Commit
4yrs ago
User Rating
4.0/ 5
1
Top Feedback

@auth0/auth0-angular

Auth0 SDK for Angular Single Page Applications

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
115
Weekly Downloads
40.5K
Last Commit
3mos ago
gra

grant

OAuth Proxy

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
3.6K
Weekly Downloads
111K
Last Commit
3mos ago

supertokens-node

Node SDK for SuperTokens core

Apache-2.0
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
145
Weekly Downloads
2.3K
Last Commit
3mos ago
vrs

vue-router-simple-auth

A simple Vue Plugin to set authorization rules before Vue Router routes.

ISC
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
0
Weekly Downloads
13
Last Commit
2yrs ago
User Rating
4.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
1Highly Customizable

@delon/auth

Delon is a set of essential modules for ng-alain. https://github.com/ng-alain/ng-alain/issues

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
636
Weekly Downloads
1.4K
Last Commit
3mos ago
raw

redux-auth-wrapper

A React Higher Order Component (HOC) for handling Authentication and Authorization with Routing and Redux

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
2.2K
Weekly Downloads
26.3K
Last Commit
2mos ago
act

activedirectory2

ActiveDirectory is an Node.js ldapjs client for authN (authentication) and authZ (authorization) for Microsoft Active Directory with range retrieval support for large Active Directory installations.

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
47
Weekly Downloads
5K
Last Commit
2yrs ago
User Rating
2.0/ 5
1
Top Feedback
1Poor Documentation

angularx-social-login

Social login and authentication module for Angular 9

MIT
TypeScript Icon
TypeScript Definitions: Built-In
TypeScript Icon
Deprecated
GitHub Stars
525
Weekly Downloads
24.9K
Last Commit
10mos ago
nba

nuxt-basic-auth-module

Provide basic auth your Nuxt.js application

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
293
Weekly Downloads
8.6K
Last Commit
5mos ago
pl

passport-local

Username and password authentication strategy for Passport and Node.js.

Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
2.6K
Weekly Downloads
586K
Last Commit
1yr ago
User Rating
Top Feedback
1Easy to Use

@axa-fr/react-oidc-context

A set of react components and HOC to make Oidc (Open ID Connect) client easy. It aim to simplify OAuth authentication between multiples providers.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
309
Weekly Downloads
4.4K
Last Commit
3mos ago
ia

ionic-appauth

Intergration for OpenId/AppAuth-JS into Ionic V3/4/5

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
60
Weekly Downloads
1.6K
Last Commit
1mo ago
oau

oauth2orize

OAuth 2.0 authorization server toolkit for Node.js.

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
3.3K
Weekly Downloads
44.4K
Last Commit
6mos ago
User Rating
Top Feedback
1Poor Documentation
1Hard to Use
cpf

cordova-plugin-fingerprint-aio

👆 📱 Cordova Plugin for fingerprint sensors (and FaceID) with Android and iOS support

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
275
Weekly Downloads
8.1K
Last Commit
5mos ago
eak

@vpriem/express-api-key-auth

Tiny express middleware to authenticate x-api-key request header

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
4
Weekly Downloads
1K
Last Commit
2mos ago
ras

react-apple-signin-auth

 Apple signin for React using the official Apple JS SDK

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
58
Weekly Downloads
6.3K
Last Commit
2mos ago
eba

express-basic-auth

Plug & play basic auth middleware for express

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
284
Weekly Downloads
233K
Last Commit
6mos ago
hae

hmac-auth-express

HMAC middleware for Express

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
16
Weekly Downloads
196
Last Commit
3mos ago
put

passport-unique-token

Unique token authentication strategy for Passport

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
35
Weekly Downloads
5.5K
Last Commit
8mos ago
pf

passport-facebook

Facebook authentication strategy for Passport and Node.js.

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
1.3K
Weekly Downloads
102K
Last Commit
1yr ago
ace

aws-cognito-express

Verification of Access and ID tokens issued by AWS Cognito for Node.js

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
32
Weekly Downloads
600
Last Commit
3mos ago
naf

ngx-auth-firebaseui

Angular Material UI component for firebase authentication

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
572
Weekly Downloads
458
Last Commit
3mos ago

coda-auth

Authentication for Next.js

ISC
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
10.1K
Weekly Downloads
3
Last Commit
3mos ago

speakeasy

**NOT MAINTAINED** Two-factor authentication for Node.js. One-time passcode generator (HOTP/TOTP) with support for Google Authenticator.

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
2.6K
Weekly Downloads
133K
Last Commit
1yr ago
ce

cognito-express

Authenticates API requests on a Node application by verifying the JWT signature of AccessToken or IDToken generated by Amazon Cognito.

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
195
Weekly Downloads
20.3K
Last Commit
4mos ago
en

express-ntlm

An express middleware to have basic NTLM-authentication in node.js.

BSD-2-Clause
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
83
Weekly Downloads
1.3K
Last Commit
1mo ago
pl

passport-ldapauth

LDAP authentication strategy for Passport

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
299
Weekly Downloads
19.7K
Last Commit
2yrs ago
User Rating
Top Feedback
1Easy to Use

react-native-biometrics

React Native module for iOS and Android biometrics

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
385
Weekly Downloads
18.4K
Last Commit
2yrs ago
ro

redux-oidc

A package for managing OpenID Connect authentication in ReactJS / Redux apps

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
396
Weekly Downloads
14.6K
Last Commit
3yrs ago
User Rating
Top Feedback
1Poor Documentation

react-aad-msal

A React wrapper for Azure AD using the Microsoft Authentication Library (MSAL). The easiest way to integrate AzureAD with your React for authentication.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
344
Weekly Downloads
14K
Last Commit
1yr ago
rnl

react-native-linkedin

🔗 React-Native LinkedIn, a simple LinkedIn login library for React-Native or Expo with WebView and Modal

MIT
TypeScript Icon
TypeScript Definitions: Built-In
TypeScript Icon
Deprecated
GitHub Stars
190
Weekly Downloads
286
Last Commit
2yrs ago
User Rating
1.0/ 5
1
Top Feedback
eoj

express-oauth2-jwt-bearer

Authentication middleware for Express.js that validates JWT bearer access tokens.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
Weekly Downloads
7.2K
Last Commit