Invalid token
When I try to insert code from the site into the plugin, phpstorm gives an error
Hi, thanks for using Code Time. I noticed you downloaded an older version of the plugin that has been deprecated. You can find the new version of the plugin here: https://plugins.jetbrains.com/plugin/25617-codetime
with the new plugin the situation is similar for jetbrains b vscode
Strange. May I ask if you are using https://codetime.dev? Because there might be other services with the same name…
yes , and refresh token don't accept that couple of days i have that problem
I apologize for any inconvenience caused.
However, I haven’t been able to pinpoint where the issue might be...
I may need you to provide more information. Could you please try using the command below to check the output? If everything is working correctly, you should receive a JSON response.
curl -H "token: <your-token-here>" "https://api.codetime.dev/user/minutes?minutes="
it tells me there is no such user) although before copying I updated the token in the personal account
and next request with new updated token response with user not found.
I solved the problem after I went to https://api.codetime.dev/user in the browser and copied the token from the object by the key "upload_token" then threw it into the IDE and it worked for me. But when I copy from the form in the account, it causes an error invalid token
I see. This might be a frontend issue, possibly related to the browser or operating system. I noticed that you seem to be using Linux, though I’m not sure which distribution it is. I’ll try to fix this issue.
Yes I use ubuntu 24.04 but I had the same problem when I tried to do it on windows from my laptop
May I ask what the difference is between the token content copied to the clipboard from the webpage and the response payload?
I checked both of these tokens and they turned out to be absolutely identical, but I decided to test again and first I pasted the code copied from the front end into vs code and the error repeated itself, then I repeated the operation again and copied it from the API and everything worked.
This is screen from VS Code when i paste front-end token
Then i ckecked both of them in js and see both identical
Maybe this can help you
@Jannchie Hi 我注意到webstorm插件市场里有两个名为 codetime 的插件,https://plugins.jetbrains.com/plugin/15507-codetime 和 https://plugins.jetbrains.com/plugin/25617-codetime。在此之前我一直使用前者,直到我遇见 “Invalid token”。
如果前者已弃用,请在网站中提示。
I also have this problem
Trying to authenticate with the upload_token at https://api.codetime.dev/user it returns me