Authenticator for AWS Cognito idToken
npm install @webiny/api-cognito-authenticator



This is an authenticator for idToken JWT received from AWS Cognito. It's not a plugin, but a simple function which you configure with your User Pool, then pass an idToken value to it, and if the token is valid, it returns an Identity object.
To use it, you can wrap it with a ContextPlugin and use in conjunction with api-authentication or api-security applications, for example.