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

[SOLUTION] Here's how to login with this plugin. #964

Open
BETTlM opened this issue Jul 14, 2024 · 10 comments
Open

[SOLUTION] Here's how to login with this plugin. #964

BETTlM opened this issue Jul 14, 2024 · 10 comments

Comments

@BETTlM
Copy link

BETTlM commented Jul 14, 2024

Hi, This is how you can sign in using cookies. I'm on Linux and this works perfectly, and I'm not so sure about windows.

Ping me if you face any issues.

leetcodelogin.1.mp4

P.S: Visual Studio Code version 1.91.1
Installed from https://aur.archlinux.org/visual-studio-code-bin.git

@BETTlM
Copy link
Author

BETTlM commented Jul 14, 2024

Apologies for poor quality of video.

@aditya1819
Copy link

Thank you @BETTlM for checking it I will try similar way in windows.
Just a question, how to grab that login cookie

@BETTlM
Copy link
Author

BETTlM commented Jul 14, 2024

Thank you @BETTlM for checking it I will try similar way in windows. Just a question, how to grab that login cookie

Open leetcode.com
Open inspect tab and switch to networks tab.
Refresh the page without closing the inspect tab.
image
Then click on any domain that has 'www.leetcode.com' on it.
LIKE:
image

Then scroll down to request headers and you will find cookie that starts like ''csfrtoken=xxx....."

Copy the value (by right clicking on top of the text) and that is your cookie.
image
If this doesn't work, try with any other domain tab.

@aditya1819
Copy link

Cookie sign in worked for me, Thanks @BETTlM

@pai4451
Copy link

pai4451 commented Jul 16, 2024

@BETTlM Which extension version are you using? And the cookie do we need to add csfrtoken= or simply the value?

@BETTlM
Copy link
Author

BETTlM commented Jul 16, 2024

@BETTlM Which extension version are you using? And the cookie do we need to add csfrtoken= or simply the value?

v1.18.1 is required to login via cookies. You can install the latest version after logging in as shown in the video.

Yes you have to include csfrtoken = xxxx

@theashggl
Copy link

Somehow this worked now. I tried the possible ways to sign in before but this tutorial made it work.

@onkar75
Copy link

onkar75 commented Jul 23, 2024

@BETTlM I tried the above steps but this does not work for me :( ,

Screen.Recording.2024-07-23.at.11.56.35.mov

@BETTlM
Copy link
Author

BETTlM commented Jul 23, 2024

@BETTlM I tried the above steps but this does not work for me :( ,

Screen.Recording.2024-07-23.at.11.56.35.mov

You are just pasting the csfr token, not the cookie.

Refer the above messages on how to get the cookie.

@theashggl
Copy link

Now we have another update. It seems that the login issue is resolved for good. It works that is good but it is still confusing. I see that the login and logout buttons are both present at the same time. There is no confirmation of login inside the console although there is a popup in the VSCode window which doesn't appear when the login happens by default in the VSCode because of starting of the application.

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

5 participants