---
title: "Sign in with Webauthn"
method: POST
path: "/signin/webauthn"
tags: ["authentication"]
---

# Sign in with Webauthn

`POST /signin/webauthn`

Initiate a Webauthn sign-in process by sending a challenge to the user's device. The user must have previously registered a Webauthn credential.

## Request body

- SignInWebauthnRequest
  - `email` string, email — A valid email

## Response `200`

Challenge sent

- PublicKeyCredentialRequestOptions
  - `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` PublicKeyCredentialDescriptor[] — A list of CredentialDescriptor objects representing public key credentials acceptable to the caller
    - `type` 'public-key', required — The valid credential types
    - `id` string, byte, required — Base64url-encoded binary data
    - `transports` AuthenticatorTransport[] — The authenticator transports that can be used
  - `userVerification` 'required' | 'preferred' | 'discouraged' — A requirement for user verification for the operation
  - `hints` PublicKeyCredentialHints[] — Hints to help guide the user through the experience
  - `extensions` AuthenticationExtensions — Additional parameters requesting additional processing by the client and authenticator

## Other responses

- `default` — An error occurred while processing the request

---

[API](https://skmtc.net/nhost/apis/nhost-authentication-api.md) · [All operations](https://skmtc.net/nhost/apis/nhost-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nhost/nhost-authentication-api/versions/a5c0d88b55c4/schema)
