Skip to content
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

leetcode.cn cannot sign in with session token #104

Open
SCljh opened this issue Jun 7, 2024 · 6 comments
Open

leetcode.cn cannot sign in with session token #104

SCljh opened this issue Jun 7, 2024 · 6 comments

Comments

@SCljh
Copy link

SCljh commented Jun 7, 2024

I copyed cookie in my browser and after paste to leetcode.nim, it gives me a error info: Sign-in failed: Bad leetcode session token format
image
image
Is there anything wrong in my cookies?
I only change cn enabled to true in config

@SCljh
Copy link
Author

SCljh commented Jun 7, 2024

my cookies has not string begin as "LEETCODE_SESSION="

@kawre
Copy link
Owner

kawre commented Jun 8, 2024

Can you check graphql requests that are at the end of the list (i.e not ones that were made when the website first loaded)?

@SCljh
Copy link
Author

SCljh commented Jun 11, 2024

I checked and there is no LEETCODE_SESSION in every graphql request, I also global searched this symbol and results nothing.

@kawre
Copy link
Owner

kawre commented Jun 12, 2024

Might be a silly question, but are you logged into leetcode on your browser?

@SCljh
Copy link
Author

SCljh commented Jun 19, 2024

Yes, I found LEETCODE_SESSION is included in leetcode.com's cookie but not included in leetcode.cn's cookie.

@arielherself
Copy link

Now it's also in leetcode.cn's cookie. Seems the developers changed the format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants