POST /v1/auth/mfa/webauthn/register/finish

POST /v1/auth/mfa/webauthn/register/finish — complete the registration ceremony. The new passkey is persisted as a confirmed mfa_factors row.

Tags: auth

Request body

Required.

JSON
{
  "$ref": "#/components/schemas/WebauthnRegisterFinishRequest"
}

Responses

200

JSON
{
  "$ref": "#/components/schemas/WebauthnRegisterFinishResponse"
}

400 — INVALID_REQUEST — bad credential or expired state

401 — UNAUTHENTICATED

Code samples

TypeScript

TypeScript
import { firecase } from "@firecase/sdk";

const result = await firecase.post("/auth/mfa/webauthn/register/finish", { /* body */ });
console.log(result);

Python

Python
import firecase

result = firecase.post("/auth/mfa/webauthn/register/finish", json={})
print(result)

curl

Bash
curl -X POST https://api.firecase.ai/v1/auth/mfa/webauthn/register/finish \
  -H "Authorization: Bearer $FIRECASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'