Start the second step with a passkey
POST
/api/auth/passkey/second-factor/options
const url = 'https://forge.example.com/api/auth/passkey/second-factor/options';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"challenge":"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://forge.example.com/api/auth/passkey/second-factor/options \ --header 'Content-Type: application/json' \ --data '{ "challenge": "example" }'Takes the challenge from the first step and answers a ceremony id and the options for the browser.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
challenge
required
string
Example generated
{ "challenge": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
ceremony
required
string
options
required
Example generated
{ "ceremony": "example", "options": "example"}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}