@novo-x/aws-cognito
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

AWS Cognito Service

  • The service implementation is very simple with only one function to validate the session token.
  • The authentication has to be made in the frontend.
  • I will leave here an example on how to implement it in React with amazon-cognito-identity-js.

Available methods

  • validateToken: validates a user token with a cognito user pool

Usage examples

yarn add @novo-x/aws-cognito

import {Cognito} from "@novo-x/aws-cognito"

const MyService = new Cognito(
    {} // optional cognito instance config
);

const result = MyService.validate(
    '123456789', // userToken
    (result) => {} // callback to be executed after validation
)

Dependencies

cognito-express

Package Sidebar

Install

npm i @novo-x/aws-cognito

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

20.2 kB

Total Files

6

Last publish

Collaborators

  • lautarobruno
  • agustin-novolabs
  • novo-tincho
  • nicolas.novolabs
  • mati-novolabs
  • alejitowow
  • nahuelprieto