RTM icon indicating copy to clipboard operation
RTM copied to clipboard

token checking bug in agora-rtm-miniapp-1.1.1

Open nuffin opened this issue 11 months ago • 1 comments

package: agora-rtm-miniapp version: 1.1.1

The token checking logic is wrong, as commented code in the image above.

image

When I calling login() method, it always throw "Invalid token" exception. After a few days, I found this error message in the code, and found the condition, token[3:APP_ID_LENGTH+3] is NOT appId, as we can clearly tell with the naked eyes ...

nuffin avatar Mar 13 '24 15:03 nuffin

hi @nuffin i think this is just comments? do you have a token generated which can share with me? so that i can help take a look what is going wrong.

plutoless avatar Mar 20 '24 02:03 plutoless