Skip to content

Commit 9fc1645

Browse files
committed
fix github login
1 parent 7f80dc6 commit 9fc1645

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-leetcode-problem-rating",
33
"displayName": "LeetCode",
44
"description": "%main.description%",
5-
"version": "3.1.3",
5+
"version": "3.1.4",
66
"author": "ccagml",
77
"publisher": "ccagml",
88
"license": "MIT",

src/rpc/actionChain/chainNode/leetcode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ and csrf token to the user object and saves the user object to the session. */
579579
if (resp.statusCode !== 200) {
580580
return cb("GitHub login failed");
581581
}
582-
if (resp.request.uri.href !== urls.github_tf_redirect) {
582+
if (!resp.request.uri.href.startsWith(urls.github_tf_redirect)) {
583583
return that.requestLeetcodeAndSave(_request, leetcodeUrl, user, cb);
584584
}
585585
prompt_out.colors = false;

0 commit comments

Comments
 (0)