Skip to content

fix(artifacts): remove tokenExpiresAt from ArtifactsCreateRepoResult#6602

Open
mattzcarey wants to merge 1 commit intocloudflare:mainfrom
mattzcarey:fix/artifacts-remove-tokenExpiresAt
Open

fix(artifacts): remove tokenExpiresAt from ArtifactsCreateRepoResult#6602
mattzcarey wants to merge 1 commit 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:

The token itself encodes its expiry as `art_v1_<secret>?expires=<unix_seconds>`,
making the separate `tokenExpiresAt` field redundant.
@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

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