Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add thrid party login -- GitHub and LinkedIn #496

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

Merged
jdneo merged 13 commits into LeetCode-OpenSource:master from yihong0618:master
Jan 12, 2020
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit Hold shift + click to select a range
af76a8b
add leetcode.cookieIn but simple change
yihong0618 Dec 3, 2019
3124790
try to fix ci first time
yihong0618 Dec 3, 2019
6ab8a3b
try to fix ci second time
yihong0618 Dec 3, 2019
8d24d57
rename cookie in to Sign in (by cookie)
yihong0618 Dec 4, 2019
ae2fa04
also change readme-cn
yihong0618 Dec 4, 2019
ed51cb5
fix preposition typo
yihong0618 Dec 5, 2019
e9fbd35
Merge remote-tracking branch 'upstream/master'
yihong0618 Dec 20, 2019
e4606fc
add thrid party login -- GitHub and LinkedIn
yihong0618 Dec 20, 2019
ae9463e
fix lint bug
yihong0618 Dec 20, 2019
4b0577e
make login methods in one pop up
yihong0618 Dec 27, 2019
f52cde3
delete comments and change cli version for ci
yihong0618 Dec 27, 2019
a7f2ff0
make naming more formal by review
yihong0618 Dec 29, 2019
b05f9d4
add two-factor support for GitHub login
yihong0618 Jan 8, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
try to fix ci first time
  • Loading branch information
yihong0618 committed Dec 3, 2019
commit 312479082871e41a1331806f18431073dceb98ad
10 changes: 5 additions & 5 deletions src/leetCodeManager.ts
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ class LeetCodeManager extends EventEmitter {
}
}

public async signIn(isCookieIn = false): Promise<void> {
const loginArg = "-l";
const cookieInArg = "-c";
const commandArg = isCookieIn ? cookieInArg : loginArg;
const inMessage = isCookieIn ? "cookie in" : "sign in"
public async signIn(isCookieIn: boolean = false): Promise<void> {
const loginArg: string = "-l";
const cookieInArg: string = "-c";
const commandArg: string = isCookieIn ? cookieInArg : loginArg;
const inMessage: string = isCookieIn ? "cookie in" : "sign in"
try {
const userName: string | undefined = await new Promise(async (resolve: (res: string | undefined) => void, reject: (e: Error) => void): Promise<void> => {
let result: string = "";
Expand Down

AltStyle によって変換されたページ (->オリジナル) /