LeetCode-OpenSource/vscode-leetcode

Not able to login as mentioned in the readme file

Opened this issue ยท 2 comments

๐Ÿ› Bug Report

Not able to login as per the steps mentioned in the readme

To Reproduce

install the extension
click on sign
navigates to leetcode login
on click of authorize/login
vscode show error like below
image

Expected behavior

Should have been logged in properly

Extension Output

(node:20040) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
Active Name Version Desc

โœ” solution.discuss 2019.02.03 Plugin to fetch most voted solution in discussions.
โœ” company 2017.12.18 Plugin to query by company for free user.
โœ” cache default Plugin to provide local cache.
โœ” retry default Plugin to retry last failed request if autologin.enable is on.
โœ˜ leetcode.cn 2018.11.25 Plugin to talk with leetcode-cn APIs.
โœ” leetcode default Plugin to talk with leetcode APIs.
(node:20041) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
[ERROR] You are not login yet?
(node:20042) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
Guidance: Press Ctrl+Shift+U, and toggle the channel to LeetCode.

Your Environment

  • os: macos
  • extension settings:
  • nodejs version: v16.20.2
  • vscode version:
    Version: 1.91.0 (Universal)
    Commit: ea1445cc7016315d0f5728f8e8b12a45dc0a7286
    Date: 2024-07-01T18:54:18.541Z
    Electron: 29.4.0
    ElectronBuildId: 9728852
    Chromium: 122.0.6261.156
    Node.js: 20.9.0
    V8: 12.2.281.27-electron.0
    OS: Darwin arm64 23.5.0
  • extension version: v0.18.2

Sign-in with Cookies works for me.

  • platform: mac arm64
  • extension version: 0.18.4
  • node version: v23.1.0
  • Cookie format: "csrftoken=<value>;LEETCODE_SESSION=<value>;"
    (Note that you need to pass the argument with double quotes so that it can be parsed as a string)