Add GitHub auth (#3095)
This commit is contained in:
committed by
syuilo
parent
8d7c033cf5
commit
8646a9c49c
@ -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
|
||||
|
Reference in New Issue
Block a user