I'm setting up authentication with tokens in my app but running into the DYNAMIC_KEY_EXPIRED issue that locked me out of all Agora services.
I produce a new token via the RtcTokenBuilder.buildTokenWithUid provided in the docs and I'm trying to renew the token but I don't know where to put the renewToken(TOKEN_STRING) function after it has expired.
The client.onTokenExpiredDidExpire watcher is not firing at all and I'm assuming that's the issue but even putting renewToken(TOKEN_STRING) in onFailure callback of client.join I get an error saying I can't call renewToken before the user joins.
Help please!!!!!
The solution was to make sure your UID in token generation is an integer, string UIDs cause some undefined behavior in the SDK.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With