Passkey Account Authentication
Smart accounts with passkey as primary signer
Generate authentication options for a user
Query parameters
usernamestringRequired
The username of the user
Responses
200
Authentication options generated successfully
application/json
400
User not registered
500
Internal server error
get
GET /webauthn/authenticate/generate-options?username=text HTTP/1.1
Host:
Accept: */*
{
"passkeyAuthenticationOptions": {}
}
Verify the authentication for a user
Query parameters
usernamestringRequired
The username of the user
Body
idstringOptional
rawIdstringOptional
authenticatorAttachmentstringOptional
clientExtensionResultsobjectOptional
typestringOptional
Responses
200
Authentication verified successfully
application/json
400
User not found or Device Info not found
500
Internal server error
post
POST /webauthn/authenticate/verify?username=text HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 186
{
"id": "text",
"rawId": "text",
"response": {
"attestationObject": "text",
"clientDataJSON": "text",
"signature": "text"
},
"authenticatorAttachment": "text",
"clientExtensionResults": {},
"type": "text"
}
{
"message": "text"
}
Last updated