Add GitHub auth (#3095)
This commit is contained in:
parent
8d7c033cf5
commit
8646a9c49c
14 changed files with 416 additions and 8 deletions
|
@ -82,6 +82,11 @@ export interface ILocalUser extends IUserBase {
|
|||
userId: string;
|
||||
screenName: string;
|
||||
};
|
||||
github: {
|
||||
accessToken: string;
|
||||
id: string;
|
||||
login: string;
|
||||
};
|
||||
line: {
|
||||
userId: string;
|
||||
};
|
||||
|
@ -280,6 +285,9 @@ export const pack = (
|
|||
delete _user.twitter.accessToken;
|
||||
delete _user.twitter.accessTokenSecret;
|
||||
}
|
||||
if (_user.github) {
|
||||
delete _user.github.accessToken;
|
||||
}
|
||||
delete _user.line;
|
||||
|
||||
// Visible via only the official client
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue