A utility tool to tap into usage behaviour and relay metrics
npm install reodotdev``bash`
npm i reodotdevor
yarn add reodotdev
`js
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 });
})
`
`js``
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);