Skip to content

Commit

Permalink
solution: description field for Auth API
Browse files Browse the repository at this point in the history
  • Loading branch information
splix committed Oct 23, 2024
1 parent 7baf09b commit 61756db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api-definitions
2 changes: 2 additions & 0 deletions packages/core/src/typesAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export type TokenDetails = {
projectId: ProjectId,
tokenId: TokenId,
createdAt: Date,
description?: string,
}

export type IssueTokenRequest = {
Expand Down Expand Up @@ -190,6 +191,7 @@ export class ConvertAuth {
projectId: token.getProjectId(),
tokenId: token.getTokenId(),
createdAt: new Date(token.getCreationDate()),
description: (typeof token.getDescription() == "string" && token.getDescription().length > 0) ? token.getDescription() : null,
}
}),
}
Expand Down

0 comments on commit 61756db

Please sign in to comment.