Expand my Community achievements bar.

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) {