cognito4webapi
TypeScript icon, indicating that this package has built-in type declarations

2.10.9 • Public • Published

OAuth 2 / OpenID Connect (allowing for Cognito idiosyncrasies) for JavaScript Runtimes

Notes on this fork

This fork takes Filip Skokans spec compliant library and breaks it to accommodate Cognito:

  • Cognito doesn't include an 'aud' claim in its access tokens so this fork doesn't error when it's missing
    • Please upvote this report to get this issue fixed and remove the need for this fork
  • Cognito doesn't include the 'typ' header parameter in its access tokens so this fork doesn't error when it's missing
    • Please upvote this report to get this issue fixed and remove the need for this fork

In addition, this fork generalizes the validateJwtAccessToken() to accommodate scenarios where it is not possible to receive the token in the Authentication header (e.g. server rendered pages that don't involve client->server API calls)

Install

Yarn

yarn add cognito4webapi

npm

npm install cognito4webapi

Original readme here

Package Sidebar

Install

npm i cognito4webapi

Weekly Downloads

7

Version

2.10.9

License

MIT

Unpacked Size

150 kB

Total Files

5

Last publish

Collaborators

  • jon_custom_voyage