@projektionisten/amazon-cognito-identity-js-node-fork

0.1.0 • Public • Published

Amazon Cognito Identity SDK for JavaScript for Node.js

This module was originally a forked from amazon-cognito-identity-js to amazon-cognito-identity-js-node. I have since forked it again as the owner of the fork does not seem to be accepting pull requests.

I made updates to the codebase to sent a mock User Agent string in the HTTPS Requests, failure to do this causes errors like this:

ReferenceError: navigator is not defined
    at CognitoUser.authenticateUserInternal (node_modules/amazon-cognito-identity-js/lib/CognitoUser.js:343:19)

Install

npm install amazon-cognito-identity-js-node

Usage

var AWS = require('aws-sdk');
var CognitoSDK = require('amazon-cognito-identity-js-node');

AWS.CognitoIdentityServiceProvider.AuthenticationDetails = CognitoSDK.AuthenticationDetails;
AWS.CognitoIdentityServiceProvider.CognitoUserPool = CognitoSDK.CognitoUserPool;
AWS.CognitoIdentityServiceProvider.CognitoUser = CognitoSDK.CognitoUser;

Package Sidebar

Install

npm i @projektionisten/amazon-cognito-identity-js-node-fork

Weekly Downloads

7

Version

0.1.0

License

SEE LICENSE IN LICENSE.txt

Unpacked Size

84.9 kB

Total Files

23

Last publish

Collaborators

  • projektionist