fix: improve token management

This commit is contained in:
tdurieux
2024-06-18 12:00:45 +02:00
parent 9271332d5b
commit 532c094388
9 changed files with 90 additions and 32 deletions
+3
View File
@@ -4,6 +4,9 @@ const UserSchema = new Schema({
accessTokens: {
github: { type: String },
},
accessTokenDates: {
github: { type: Date },
},
externalIDs: {
github: { type: String, index: true },
},
+3
View File
@@ -4,6 +4,9 @@ export interface IUser {
accessTokens: {
github: string;
};
accessTokenDates?: {
github: Date;
};
externalIDs: {
github: string;
};