Skip to content

Instantly share code, notes, and snippets.

@oxlb
Created September 13, 2020 15:09
Show Gist options
  • Save oxlb/8574a4cc288b54e969005b4a89c24d44 to your computer and use it in GitHub Desktop.
Save oxlb/8574a4cc288b54e969005b4a89c24d44 to your computer and use it in GitHub Desktop.
'use strict';
global.fetch = require('node-fetch')
require('dotenv').config();
const Cognito = require('./cognito/index');
const { verify } = require('./cognito/index');
const body = {
email: "[email protected]",
password: "Test123456!"
};
async function Signup() {
const response = await Cognito.signUp(body.email,body.password);
console.log(response);
}
async function Verify() {
const response = await Cognito.verify(body.email,'654769');
console.log(response);
}
async function SignIn() {
const response = await Cognito.signIn(body.email,body.password);
console.log(response);
}
// Signup();
// Verify();
SignIn();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment