reodotdev
v1.1.0
Published
A utility tool to tap into usage behaviour and relay metrics
Readme
Quick start
NPM
npm i reodotdev
# or
yarn add reodotdevimport { 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": "[email protected]",
"type": "email", // primary identifier to be email
"other_identities": [
{
"username": "johndoe83",
"type": "github" // other identifiers can be github, linkedin
}
],
"firstname": "John",
"lastname": "Doe",
"company": "microsoft.com" // company domain
}
Reo.identify(identity);