1.0.0 • Published 2 years ago
reodotdev v1.0.0
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);