@remote.it/services

v0.9.16
## Install
remoteit remote.it services utils

@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()
npm i @remote.it/services

Metadata

  • MIT
  • Whatever
  • Dana Woodman
  • released 7/28/2022

Downloads