Skip to content
JS
Package

cognito-passport-oauth2

A passport strategy to authenticate against an AWS Cognito User Pool OAuth 2.0 provider and get user profile, access token and ID token. This supports providing cognito specific additional auth parameters. This is subclass of passport-oauth2 strategy.

v1.3.1, 23 Jan 2025MITCommonJSTypes: BundledCloud SDKs
$ npm install cognito-passport-oauth2

Key numbers

As of 25 Sept 2026
Weekly downloads
45.6k
-31% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
1 year ago
v1.3.1
GitHub stars
2
1 forks
Open issues / PRs
1 / 3
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
020k40k60k80kSept 2025Mar 2026Sept 2026High 70.7k (2 Dec 2025)Low 21.3k (1 Sept 2026)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

45,608 downloads last week, 151,087 in the last month. The 12-month change of -31% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
1.3.1, 23 Jan 20251 year ago
First published
-
Last push to GitHub
20 Jan 2026247 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
3
Commits, last 52 weeks
0
Dependents on npm
0

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
13 kB
Dependencies (2)
passport-oauth2@aws-sdk/client-cognito-identity-provider
npm install cognito-passport-oauth2
  • jsDelivrhttps://cdn.jsdelivr.net/npm/cognito-passport-oauth2@1.3.1/
  • unpkghttps://unpkg.com/cognito-passport-oauth2@1.3.1/
  • esm.shhttps://esm.sh/cognito-passport-oauth2@1.3.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.