Add GitHub auth

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-11-04 19:17:30 +09:00
parent a0f10d7ca1
commit c146006476
14 changed files with 416 additions and 8 deletions

View file

@ -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