Hi Shenming, thanks for reaching out. If I understand correctly, first you were logged in and got the "invalid token" message? If yes, it's because the token has expired. Then you logged out, and still no success, correct? Please log in again. This should fetch a fresh token and your queries should work.
Please let us know if it still doesnt work.
Best,
Robert