This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//When stackoverflow can't help you... | |
const AWS = require('aws-sdk'); | |
var AmazonCognitoIdentity = require('amazon-cognito-identity-js'); | |
var CognitoUserPool = AmazonCognitoIdentity.CognitoUserPool; | |
var AuthenticationDetails = AmazonCognitoIdentity.AuthenticationDetails; | |
var CognitoUser = AmazonCognitoIdentity.CognitoUser; | |
exports.handler = (event, context, callback) => { |