User

JavaScript Widget User API

Get user ID

window.chatWidgetApi.getUserId()
Method NameDescriptionParametersReturn Values

window.chatWidgetApi.getUserId

Get the user id

N/A

userID

Get User ID from wallet address

window.chatWidgetApi.getUidByAddress(address).then((userId)=>{console.log(userId)})
Method NameDescriptionParametersReturn Values

window.chatWidgetApi.getUidByAddress

Get user ID by wallet address

wallet address

userId

Get user information

Method NameDescriptionParametersReturn Values

window.chatWidgetApi.getUserData

Get user information

N/A

User info: avatar_url, displayname, signature, wallet_address

Log Out

Method NameDescriptionParametersReturn Values

window.chatWidgetApi.logout

Log out of the current session

callback (optional): Callback after logging out

N/A

Last updated