Auth API reference

Auth API · Consumer-Mfa

post/{app_slug}/v1/me/mfa/step-up/webauthn/optionsAuth

Get passkey assertion options for step-up

Mints a single-use WebAuthn challenge for the enabled passkeys on this account and returns the `publicKey` member for `navigator.credentials.get()`. Submit the result to `/step-up` as `credential`. Refused while step-up is locked on this session — a locked session must not be able to keep minting challenges.

Path parameters

app_slug*string

Slug of the app.

Response · 200

public_key*object

The `publicKey` member to hand to `navigator.credentials.get()` verbatim: `challenge`, `rpId`, `timeout`, `userVerification` and `allowCredentials`. Single-use; expires after 5 minutes.

Example

Request

POST https://api.auth.productcraft.co/{app_slug}/v1/me/mfa/step-up/webauthn/options
Authorization: Bearer YOUR_TOKEN

Response

{
  "public_key": {}
}