Autional Autional
API Reference GitHub autional.com →

POST /auth/webauthn/login/begin

Generate a login challenge and return it to the frontend for calling navigator.credentials.get().

WebAuthn `bearerAuth` application/json

Request Body

Schema: handler.beginLoginRequest

FieldTypeRequiredExampleConstraintsDescription
password string Yes length: 1–?

Responses

StatusDescriptionSchema
200Login optionsdto.WebAuthnLoginResponseWrapper
401Unauthorizeddto.SimpleResponseWrapper
500Server errordto.SimpleResponseWrapper

Referenced Schemas

dto.SimpleResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No

dto.WebAuthnCredentialDescriptor

FieldTypeRequiredExampleConstraintsDescription
id string No
transports array of

string

No
type string No

dto.WebAuthnLoginOptionsResponse

FieldTypeRequiredExampleConstraintsDescription
allowCredentials array of

See dto.WebAuthnCredentialDescriptor

No
challenge string No
rpId string No
timeout integer No
userVerification string No

dto.WebAuthnLoginResponse

FieldTypeRequiredExampleConstraintsDescription
publicKey dto.WebAuthnLoginOptionsResponse No

dto.WebAuthnLoginResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.WebAuthnLoginResponse No
message string No
timestamp string No