Miro Javascript SDK enhancement


In the current Javascript SDK, miro.currentUser which is ICurrentUserCommands type only allow to get current user id. (using getId method)

 

It would be nice to add another method which return a IUserInfo structure. (for example a getInfo method ?) which allow to get, for example, user name. (i don’t see any security issue since it is info about current logged in user)

 

Sorry to wake up an old thread, but i have recently upgraded my web application (dice.io) to Miro SDK v2. I get an userInfo object using the following code :

 

const userInfo = await miro.board.getUserInfo().catch((e) => {
console.log('[Dice Roller] Failed to get user info', e)
})

But the object contains only the user id (even with `identity:read` scope enabled on the app).

Is there a way (or do you plan to add ?) to get the user name  in Web SDK v2 ?

 

Currently with only id the best i can do is adding a “user_” prefix, but the result is not as good as displaying user name :

 

 

 

Any help would be appreciated.