WIP: Add Discord auth (#3239)
* Add Discord auth * Apply review 175263424
This commit is contained in:

committed by
syuilo

parent
a34fdc2068
commit
9d8f7b081d
@@ -88,6 +88,14 @@ export interface ILocalUser extends IUserBase {
|
||||
id: string;
|
||||
login: string;
|
||||
};
|
||||
discord: {
|
||||
accessToken: string;
|
||||
refreshToken: string;
|
||||
expiresDate: number;
|
||||
id: string;
|
||||
username: string;
|
||||
discriminator: string;
|
||||
};
|
||||
line: {
|
||||
userId: string;
|
||||
};
|
||||
@@ -291,6 +299,11 @@ export const pack = (
|
||||
if (_user.github) {
|
||||
delete _user.github.accessToken;
|
||||
}
|
||||
if (_user.discord) {
|
||||
delete _user.discord.accessToken;
|
||||
delete _user.discord.refreshToken;
|
||||
delete _user.discord.expiresDate;
|
||||
}
|
||||
delete _user.line;
|
||||
|
||||
// Visible via only the official client
|
||||
|
Reference in New Issue
Block a user