leetcode.nvim icon indicating copy to clipboard operation
leetcode.nvim copied to clipboard

leetcode.cn cannot sign in with session token

Open SCljh opened this issue 1 year ago • 6 comments

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 avatar Jun 07 '24 07:06 SCljh

my cookies has not string begin as "LEETCODE_SESSION="

SCljh avatar Jun 07 '24 07:06 SCljh

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)?

kawre avatar Jun 08 '24 19:06 kawre

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

SCljh avatar Jun 11 '24 02:06 SCljh

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

kawre avatar Jun 12 '24 12:06 kawre

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

SCljh avatar Jun 19 '24 02:06 SCljh

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

arielherself avatar Jul 07 '24 05:07 arielherself