Skip to main content
POST
/
elevate
/
webauthn
Elevate access for an already signed in user using FIDO2 Webauthn
curl --request POST \
  --url https://{subdomain}.auth.{region}.nhost.run/v1/elevate/webauthn \
  --header 'Authorization: Bearer <token>'
{
  "challenge": "aSDinaTvuI8gbWludGxpZnk=",
  "timeout": 123,
  "rpId": "<string>",
  "allowCredentials": [
    {
      "type": "public-key",
      "id": "aSDinaTvuI8gbWludGxpZnk=",
      "transports": [
        "usb"
      ]
    }
  ],
  "userVerification": "preferred",
  "hints": [
    "security-key"
  ],
  "extensions": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication with JWT access token. Used to authenticate requests to protected endpoints.

Response

Challenge sent for elevation

challenge
string<byte>
required

Base64url-encoded binary data

timeout
integer

A time, in milliseconds, that the caller is willing to wait for the call to complete

rpId
string

The RP ID the credential should be scoped to

allowCredentials
object[]

A list of CredentialDescriptor objects representing public key credentials acceptable to the caller

userVerification
enum<string>
default:preferred

A requirement for user verification for the operation

Available options:
required,
preferred,
discouraged
hints
enum<string>[]

Hints to help guide the user through the experience

extensions
object

Additional parameters requesting additional processing by the client and authenticator

I