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​

Last updated