feat: github connect uses user id instead of username

This commit is contained in:
tdurieux
2021-09-06 10:10:28 +02:00
parent e27493dc12
commit 9abbefaa6b
4 changed files with 12 additions and 3 deletions

View File

@@ -5,6 +5,9 @@ const UserSchema = new Schema({
accessTokens: {
github: { type: String },
},
externalIDs: {
github: { type: String },
},
username: {
type: String,
index: { unique: true },

View File

@@ -4,7 +4,9 @@ export interface IUser {
accessTokens: {
github: string;
};
externalIDs: {
github: string;
};
username: string;
emails: {
email: string;