Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

username instead of userID in SimpleChat and Roster

Avatar

Level 3

Hi,

I'm creating an auth token using php with

$session->getAuthenticationToken($secret, $userId, $userName, $userRole);

In the roster and in the SimpleChat log I see the userID instead of the user name.

Is there a way to change that?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee

The correct syntax is getAuthenticationToken($secret, $name, $userID, $userRole) :

/**

  • get an external authentication token

*/

function getAuthenticationToken($accountSecret, $name, $id, $role) {

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

The correct syntax is getAuthenticationToken($secret, $name, $userID, $userRole) :

/**

  • get an external authentication token

*/

function getAuthenticationToken($accountSecret, $name, $id, $role) {