1.0.0 • Published 2 years ago

reodotdev v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Quick start

NPM

npm i reodotdev
# or
yarn add reodotdev
import { loadReoScript } from 'reodotdev'

// Declare clientID from environment variable or directly as string
const clientID = process.env.CLIENT_ID || "XXXXXXXXXX";
// Resolve promise to get access to methods on Reo
const reoPromise = loadReoScript({ clientID });
reoPromise
  .then(Reo => {
     Reo.init({ clientID });
  })
const identity = {
  username: 'johndoe@microsoft.com',
  type: 'email',   // can be one of email, github, linkedin, gmail, userID,
  firstname: 'John',
  lastname: 'Doe',
  company: 'Microsoft'
}
Reo.identify(identity);
1.0.0

2 years ago

1.0.1

2 years ago