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:
2026-05-31 09:59:44 +02:00
co-authored by Cursor
parent ad7e036ab7
commit 68af8c6361
5 changed files with 6 additions and 2 deletions
+2
View File
@@ -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 })