Links

User

Develop user-specific features to interact with your users on a closer level.

Get User Info

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
});

Properties

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 5mo ago