17 Best Node.js Authentication Libraries

Curated by the Openbase team and community.Learn more

Curated by the Openbase team and community. Learn more

keycloak-js

Open Source Identity and Access Management For Modern Applications and Services

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
3
Top Feedback
N/A
GitHub Stars
10K
Weekly Downloads
173K
Last Commit
2d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
pas

passport

Simple, unobtrusive authentication for Node.js.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.3/ 5
79
Top Feedback
16Performant
14Easy to Use
14Highly Customizable
GitHub Stars
19K
Weekly Downloads
1M
Last Commit
3d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
po

passport-oauth2

OAuth 2.0 authentication strategy for Passport and Node.js.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
1Easy to Use
GitHub Stars
503
Weekly Downloads
407K
Last Commit
2d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

@feathersjs/authentication-jwt

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
14K
Weekly Downloads
4K
Last Commit
7d ago
Bundle Size (min+gzip)
20.3KB
Not Tree-Shakeable

socketio-jwt

Authenticate socket.io incoming connections with JWTs

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.0/ 5
2
Top Feedback
2Great Documentation
1Bleeding Edge
GitHub Stars
1K
Weekly Downloads
17K
Last Commit
6mos ago
Bundle Size (min+gzip)
13.3KB
Not Tree-Shakeable

supertokens-node

Node driver for SuperTokens core

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
44
Weekly Downloads
291
Last Commit
4d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
pl

passport-local

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

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
1Easy to Use
GitHub Stars
3K
Weekly Downloads
487K
Last Commit
3mos ago
Bundle Size (min+gzip)
0.66KB
Not Tree-Shakeable
pl

passport-ldapauth

LDAP authentication strategy for Passport

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
1Easy to Use
GitHub Stars
291
Weekly Downloads
21K
Last Commit
10mos ago
Bundle Size (min+gzip)
50.9KB
Not Tree-Shakeable
pf

passport-facebook

Facebook authentication strategy for Passport and Node.js.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
108K
Last Commit
3mos ago
Bundle Size (min+gzip)
8.35KB
Not Tree-Shakeable

speakeasy

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3K
Weekly Downloads
102K
Last Commit
8mos ago
Bundle Size (min+gzip)
2.56KB
Not Tree-Shakeable
en

express-ntlm

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

License Icon
License: BSD-2-Clause
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
81
Weekly Downloads
2K
Last Commit
1mo ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
pc

passport-cognito

Passport strategy for AWS Cognito User Pools

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
67
Weekly Downloads
1K
Last Commit
3mos ago
Bundle Size (min+gzip)
361.0KB
Not Tree-Shakeable
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.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
45
Weekly Downloads
4K
Last Commit
1yr ago
Bundle Size (min+gzip)
53.4KB
Not Tree-Shakeable
pas

passwordless

node.js/express module to authenticate users without password

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
791
Last Commit
3yrs ago
Bundle Size (min+gzip)
3.20KB
Not Tree-Shakeable
per

permit

An unopinionated authentication library for building Node.js APIs.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
583
Last Commit
2yrs ago
Bundle Size (min+gzip)
1.02KB
Not Tree-Shakeable
eum

express-user-management

A ready-to-use express middleware for authentication.

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
6
Last Commit
N/A
Bundle Size (min+gzip)
451.2KB
Not Tree-Shakeable
phb

@novaedge/passport-http-bearer

HTTP Bearer authentication strategy for Passport and Node.js.

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
911
Weekly Downloads
2
Last Commit
1yr ago
Bundle Size (min+gzip)
0.78KB
Not Tree-Shakeable