Skip to content

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

Description

@nuffin

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions