-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot login with premium account #194
Comments
Not familiar with this, but I check the request/response on leetcode website and saw this recaptcha_token, can anyone educate me what is effect of this token here? Thanks. |
https://developers.google.com/recaptcha/intro
|
+1, code here https://github.com/leetcode-tools/leetcode-cli does not work either. |
most probably, leetcode recently enhance the security set of its API, that's why our login request failed. I am trying to fix this issue, but no luck yet... |
I am not handly on JS, possibly this captcha-solver may help? |
It seems I'm able to get the cli working by manually logging into the site in a browser, viewing the cookies, and creating the
Currently, I've only tested showing my account status and listing problems. |
I am trying your tips. But I don't know how can I find my LEETCODE_SESSION. Could you tell me where I can find it? |
After logging into LeetCode I'm using the storage inspector to grab the cookie values, https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector. |
Thank you very much for the quick reply! |
I sovled this problem by using cookie.chrome plugin.
|
I faced the same problem. Even after using the token I get locked question error with my premium account. |
You can try this workshop based on Instead of submit with cli, it will automatically copy the submit content to the clipboard and open the problem page. You just need to paste it. And by the way, you can use jest to test your code locally, which is really helpful and fast for debug and verification. |
For those who want to find data below, just go to chrome and paste this
Edit:It seems like the link above no longer works: Go to leetcode.com and open inspect tab Then you should see it return your cookies. You can then copy sessionCSRF from |
love u bro |
The plugin was working fine before then I uninstalled and reinstalled vim as well as installed the plugin and couldn't log in later. I tried your method, I don't know what I filled in wrong, can you correct me? Thank you! |
@shalimujiang I have made an edit in my comment above and I think the values can be obtained using another way. Hope it works :) |
@shalimujiang how you launch command "leetcode user -l" using user.json? |
Problem Summary
Recently bought premium and can't seem to log in anymore.
How to reproduce
Ran
./bin/leetcode user --login -vv
Get:
[ERROR] invalid password?
(403 forbidden)Here is the full trace:
Environment
The text was updated successfully, but these errors were encountered: