Finish signing in with a passkey: sets the session cookie
POST
/api/v1/auth/login/finish
const url = 'https://deck.example.com/api/v1/auth/login/finish';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"ceremony":"example","credential":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://deck.example.com/api/v1/auth/login/finish \ --header 'Content-Type: application/json' \ --data '{ "ceremony": "example", "credential": "example" }'Authorizations
Section titled “Authorizations”- None
Request Bodyrequired
Section titled “Request Bodyrequired”The browser’s answer to a ceremony.
Media typeapplication/json
The browser’s answer to a ceremony.
object
ceremony
required
string
credential
required
The WebAuthn credential as JSON, from navigator.credentials.create() or .get().
Example generated
{ "ceremony": "example", "credential": "example"}Responses
Section titled “Responses”default
Section titled “default”An error, with its message.
Media typeapplication/json
Every error the REST API returns, with an HTTP status.
object
error
required
string
Example generated
{ "error": "example"}