@remote.it/services
v0.9.16
Published
## Install
Downloads
30
Readme
@remote.it/services
Install
npm i @remote.it/services
Usage
import { CognitoService } from '@remote.it/services'
import 'isomorphic-fetch' // needed if using in node and not browser
// Optional config:
const config = {
/* ...see type definition for options... */
}
const cognito = new CognitoService(config)
async function signInUser() {
const username = '[email protected]'
const password = 'sup3rsekret!'
const [challenge, user] = await cognito.signIn(username, password)
console.log('challenge:', challenge)
console.log('user:', user)
}
signInUser()