2.10.9 • Published 1 month ago

cognito4webapi v2.10.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

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