You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Thank you for your great tutorials,
I tried to apply this tutorial but I get this error : The vendor enabled the dynamic key, but uses the static key. +0ms Error Code 5: login failed with args: {"uid":"User name"}. +14ms
Here is how I'm generating the token :
public function getAgoraTokenRTM($userName)
{
$rtm = new RtmTokenBuilder();
$role = $rtm::RoleRtmUser;
$expireTimeInSeconds = 3600;
$currentTimestamp = (new DateTime("now", new DateTimeZone('UTC')))->getTimestamp();
$privilegeExpiredTs = $currentTimestamp + $expireTimeInSeconds;
return $rtm::buildToken(env('AGORA_APP_ID'), env('AGORA_CERTIFICATE_ID'), $userName, $role, $privilegeExpiredTs);
}
Please could you tell me what's the mistake ?
Also, I want to setup this tutorial for only audio (same as twitter space) , no need video, so could you please guide me how to achieve it.
Thank you
The text was updated successfully, but these errors were encountered:
You'll need to create a separate dynamic token for both RTC and RTM and pass them in the application separately. This error happens because of incorrect tokens being passed to the frontend.
Hello,
Thank you for your great tutorials,
I tried to apply this tutorial but I get this error :
The vendor enabled the dynamic key, but uses the static key. +0ms
Error Code 5: login failed with args: {"uid":"User name"}. +14ms
Here is how I'm generating the token :
Please could you tell me what's the mistake ?
Also, I want to setup this tutorial for only audio (same as twitter space) , no need video, so could you please guide me how to achieve it.
Thank you
The text was updated successfully, but these errors were encountered: