Skip to content

API tab: Server tokens (B2B) section - create, reveal once, list, revoke - #128

Merged
phwizard merged 2 commits into
2610from
feat/app-server-tokens-panel-2610
Sep 16, 2026
Merged

phwizard merged 2 commits into
2610from
feat/app-server-tokens-panel-2610

Conversation

@phwizard

Copy link
Copy Markdown
Member

Stacks on #126 (merge that first). Adds a Server tokens (B2B) section to the API settings tab against the backend endpoints being added on ethora-backend 2610: POST/GET /v2/apps/:appId/server-tokens and DELETE /v2/apps/:appId/server-tokens/:id. Create form (name, 30/90/365 days), one-time reveal behind the existing Secret control with a curl example for the x-custom-token header, list with revoke and confirm. Hidden entirely when the list endpoint 404s, so it is safe to ship before the backend lands. Strings in en/fr/es. typecheck, eslint (changed files) and build clean; the remaining eslint findings in src/http.ts are pre-existing lines.

https://claude.ai/code/session_012vLfiJYUhB9V1Tny95Lx8Q

Port of #125 onto the internationalised page: App ID / App Secret naming,
a table mapping user, app and server (B2B) tokens to when each applies,
and a Connect-an-AI-assistant section with the hosted MCP OAuth URL
(hidden when VITE_MCP_PUBLIC_URL is empty). All copy via translation
keys in en/fr/es.

Claude-Session: https://claude.ai/code/session_012vLfiJYUhB9V1Tny95Lx8Q
Uses the backend's /v2/apps/:appId/server-tokens endpoints (2610). A new
token is shown once behind the existing Secret control with a curl example
for the x-custom-token header; tokens can be revoked individually. The
whole section stays hidden when the list endpoint returns 404, so the page
works on deployments that predate the backend change. Copy in en/fr/es.

Claude-Session: https://claude.ai/code/session_012vLfiJYUhB9V1Tny95Lx8Q
@phwizard
phwizard merged commit bde00ed into 2610 Sep 16, 2026
@phwizard
phwizard deleted the feat/app-server-tokens-panel-2610 branch September 16, 2026 10:08
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