Skip to content

Conversation

@kvz
Copy link
Member

@kvz kvz commented Feb 10, 2026

Adds --scope to transloadit auth token and a programmatic Transloadit.mintBearerToken({ scope }) API so hosted MCP tokens can be minted with reduced blast radius.

Notes:

  • --scope accepts comma/space-separated scopes and normalizes to a stable space-separated string.
  • Server enforces intersection with the auth key's scope.
  • Includes required patch changeset for @transloadit/mcp-server (one-way coupling guard).

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3b298c21f4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

.object({
access_token: z.string().min(1),
token_type: z.literal('Bearer').optional(),
expires_in: z.number(),

Choose a reason for hiding this comment

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

P2 Badge Allow successful token responses without expires_in

The new success schema now requires expires_in on every 200 /token response, whereas the prior implementation only required access_token; this introduces a regression where a valid token response that omits expires_in is now treated as an error (Token response did not include an access_token.), causing both transloadit auth token and Transloadit.mintBearerToken() to fail despite successful authentication.

Useful? React with 👍 / 👎.

@kvz kvz merged commit 753f76d into main Feb 10, 2026
10 checks passed
@kvz kvz deleted the feat/auth-token-scopes branch February 10, 2026 11:57
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.

1 participant