AuthenticationPasskeys
Rename a passkey
POST
Update a specific passkey's name
sessioncookie
gamma.session_token<token>The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.
application/json- body
id*stringThe ID of the passkey which will be updated. Eg: "passkey-id"
name*stringThe new name which the passkey will be updated to. Eg: "my-new-passkey-name"
Length
1 <= lengthPasskey updated successfully
application/json- response
passkey*Example Request
curl -X POST 'http://localhost:3000/api/auth/passkey/update-passkey' \ -H 'Content-Type: application/json' \ -d '{ "id": "string", "name": "string"}'Example Response
{ "passkey": { "id": "string", "name": "string", "publicKey": "string", "userId": "string", "credentialID": "string", "counter": 0, "deviceType": "string", "backedUp": true, "transports": "string", "createdAt": "2019-08-24T14:15:22Z", "aaguid": "string" }}