AgoraIO / RTM

143 stars 160 forks source link

token checking bug in agora-rtm-miniapp-1.1.1 #209

Open nuffin opened 8 months ago

nuffin commented 8 months ago

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 ...

plutoless commented 8 months ago

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.