@remote.it/services
TypeScript icon, indicating that this package has built-in type declarations

0.9.16 • Public • Published

@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 = 'someuser@company.com'
  const password = 'sup3rsekret!'
  const [challenge, user] = await cognito.signIn(username, password)
  console.log('challenge:', challenge)
  console.log('user:', user)
}

signInUser()

Package Sidebar

Install

npm i @remote.it/services

Weekly Downloads

2

Version

0.9.16

License

MIT

Unpacked Size

98.1 kB

Total Files

26

Last publish

Collaborators

  • penngrove
  • jamieruderman
  • remotebstrech
  • ebowers