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)
yarn add cognito4webapi
npm install cognito4webapi
Original readme here