fix(profile): Reauth für Passkey-Umbenennung und Geräte-Dialog
PATCH /credentials verlangt requireReauth wie add/delete; Client ruft reauthWithPasskey vor rename auf. Abbrechen-Text beim Gerät vergessen korrigiert. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -646,6 +646,8 @@ export async function removePasskey(credentialDbId: string): Promise<void> {
|
||||
}
|
||||
|
||||
export async function renamePasskey(credentialDbId: string, label: string): Promise<void> {
|
||||
await reauthWithPasskey()
|
||||
|
||||
await apiJson(`${API_BASE}/credentials/${credentialDbId}`, {
|
||||
method: 'PATCH',
|
||||
body: JSON.stringify({ label })
|
||||
|
||||
Reference in New Issue
Block a user