/{app_slug}/v1/me/mfa/step-up/webauthn/optionsAuthGet 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*stringSlug of the app.
Response · 200
public_key*objectThe `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_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
const webauthnOptions = await auth.consumer("my-app").me.mfa.stepUp.webauthn.options();auth.consumer(…).me.mfa.stepUp.webauthn.options(options?): Auth.WebauthnOptions
Response
{
"public_key": {}
}