getUser
Get the basic details about the user (impersonation, locale, current domain...)
Syntax
messageHandler.getUser().then(function(state){//do something});
// or
let status=await messageHandler.getUser();
The User object
- brandHost: The domain of the partner site the user came from (app.vcita.com)
- businessUid: The unique identifier of the user's business
- staffUid: The unique identifier of the user
- impersonate: A boolean indicating this user uses impersonation to access. (for example, a support rep helping the business owner)
- language: the user locale
{
"brandHost": "home",
"businessUid": "widget",
"staffUid": "dfsfas12312",
"impersonate": true,
"language": "en-US"
}
Updated 8 days ago