File: app/(merchant)/developers/page.tsx, lines 100-119
The handleCreateKey function creates a key object in local state but never calls the backend. Implement apiClient.post('/api/keys', { name, type }) and display the full API key (with a "copy now" prompt) in a success dialog. The full key should be shown only once and then masked. The dialog should tell the user to copy the key now because it won't be shown again.
Labels: Pages
File:
app/(merchant)/developers/page.tsx, lines 100-119The
handleCreateKeyfunction creates a key object in local state but never calls the backend. ImplementapiClient.post('/api/keys', { name, type })and display the full API key (with a "copy now" prompt) in a success dialog. The full key should be shown only once and then masked. The dialog should tell the user to copy the key now because it won't be shown again.Labels: Pages