'+esc(client.clientName)+'
Client '+esc(client.clientId)+'
- Authorized
- '+date(client.authorizationDate)+'
- Last used
- '+date(client.lastUsedAt)+'
- Authorization expires
- '+date(client.expiresAt)+'
diff --git a/packages/app/src/ui.ts b/packages/app/src/ui.ts
index 921782fc..77b4f8ca 100644
--- a/packages/app/src/ui.ts
+++ b/packages/app/src/ui.ts
@@ -138,4 +138,24 @@ $('#connection').onsubmit=async e=>{e.preventDefault();const d=new FormData(e.cu
const ampPayload=()=>{const d=new FormData($('#amp-connection'));return {project:d.get('project'),accessToken:d.get('accessToken'),apiBaseUrl:d.get('apiBaseUrl')}};$('#test-amp').onclick=async()=>{const m=$('#amp-message');try{const x=await request('/api/connections/amp/test',{method:'POST',headers:{'content-type':'application/json'},body:JSON.stringify(ampPayload())});m.textContent=x.ok?'Amp connection succeeded.':'Amp connection needs attention.'}catch(x){m.textContent=x.message}};$('#amp-connection').onsubmit=async e=>{e.preventDefault();const m=$('#amp-message');try{await request('/api/connections/amp',{method:'PUT',headers:{'content-type':'application/json'},body:JSON.stringify(ampPayload())});e.currentTarget.reset();m.textContent='Amp connection saved. The token remains write-only.';await load()}catch(x){m.textContent=x.message}};bindActions();load();`);
export const apiKeysSettingsPage = (viewer: { email: string }) => shell("API Keys — Factorize", viewer, settingsLayout("api-keys", `${dashboardHead("API Keys", "Manage API keys for programmatic access to Factorize.")}
- This page establishes the settings navigation. Key creation and management will be added in a follow-up.API key management is coming soon
OAuth, MCP, and API clients you have allowed to access Factorize.
Create scoped bearer tokens for scripts and API requests.
Authorization: Bearer <token>'+esc(scope)+'').join(' ')||'None';
+const accessError=message=>{const error=$('#access-error');error.textContent=message||'Could not complete the request. Try again.';error.classList.remove('hidden');error.scrollIntoView({block:'nearest'})};
+const clientRow=client=>'Client '+esc(client.clientId)+'