We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fda6632 commit 9623321Copy full SHA for 9623321
server/types/apiKey.ts
@@ -8,6 +8,7 @@ export interface IApiKey extends VirtualId, MongooseTimestamps {
8
label: string;
9
lastUsedAt?: Date;
10
hashedKey: string;
11
+ token?: string;
12
}
13
14
/** Mongoose document object for API Key */
@@ -23,7 +24,10 @@ export interface ApiKeyDocument
23
24
* and can be exposed to the client
25
*/
26
export interface SanitisedApiKey
- extends Pick<ApiKeyDocument, 'id' | 'label' | 'lastUsedAt' | 'createdAt'> {}
27
+ extends Pick<
28
+ ApiKeyDocument,
29
+ 'id' | 'label' | 'lastUsedAt' | 'createdAt' | 'token'
30
+ > {}
31
32
/** Mongoose model for API Key */
33
export interface ApiKeyModel extends Model<ApiKeyDocument> {}
0 commit comments