Skip to content

fix(artifacts): remove tokenExpiresAt from ArtifactsCreateRepoResult#6602

Open
mattzcarey wants to merge 2 commits intocloudflare:mainfrom
mattzcarey:fix/artifacts-remove-tokenExpiresAt
Open

fix(artifacts): remove tokenExpiresAt from ArtifactsCreateRepoResult#6602
mattzcarey wants to merge 2 commits intocloudflare:mainfrom
mattzcarey:fix/artifacts-remove-tokenExpiresAt

Conversation

@mattzcarey
Copy link
Copy Markdown
Contributor

Remove the tokenExpiresAt field from ArtifactsCreateRepoResult. The token itself encodes its expiry as art_v1_<secret>?expires=<unix_seconds>, making the separate field redundant.

Companion PRs:

@mattzcarey mattzcarey requested review from a team as code owners April 17, 2026 14:13
@mattzcarey mattzcarey requested a review from NuroDev April 17, 2026 14:13
plaintext: string;
/** Token scope: "read" or "write". */
scope: "read" | "write";
/** ISO 8601 token expiry timestamp. */
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these comments be deleted without removing the fields (more below)?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. +1 for keeping these doc comments

The token itself encodes its expiry as `art_v1_<secret>?expires=<unix_seconds>`,
making the separate `tokenExpiresAt` field redundant.
ArtifactsRepoListResult now returns full ArtifactsRepoInfo[] instead of
Omit<ArtifactsRepoInfo, 'remote'>[], matching the backend change in
artifacts MR !106.
@mattzcarey mattzcarey force-pushed the fix/artifacts-remove-tokenExpiresAt branch from 71b2ed1 to d7e5c88 Compare April 20, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants