Created
September 13, 2020 15:09
-
-
Save oxlb/8574a4cc288b54e969005b4a89c24d44 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
'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