User
Develop user-specific features to interact with your users on a closer level.
Obtain technical information of the current app user. Returns a result object containing multiple properties.
import { getUserInfo } from '@myjsblock/sdk'
getUserInfo().then(userInfo => {
console.log(userInfo);
// userInfo.deviceId <== deviceId
// userInfo.userAccountId <== userAccountId
// userInfo.email <== email
// userInfo.authorizationLevel <== authorizationLevel
});
Property | Type | Description |
---|---|---|
deviceId | String | ID unique to this device |
applicationAccountId | String | Account ID of the currently signed in user |
email | String | Account email address of the currently signed in user |
authorizationLevel | String | User role of the currently signed in user |
Last modified 1yr ago