Vos Mock

VOS mock authentication API

Health check endpoint

get
Responses
200

Service is healthy

application/json
get
/api/health

Initialize WebAuthn registration process

get
Query parameters
idstringRequired

User ID

Example: test
namestringOptional

User display name (defaults to id if not provided)

Example: Test
Responses
200

Registration initialization successful, returns attestation options

application/json
get
/api/attestation

Complete WebAuthn registration process

post
Body
userIdstringRequired

User ID

Example: test
blockNumbernumberRequired

Blockchain block number from the attestation request

Example: 1107519
Responses
200

Registration completed successfully

application/json
post
/api/register

Initialize WebAuthn authentication process

get
Query parameters
userIdstringRequired

User ID for which to generate authentication assertion

Example: test
Responses
200

Authentication initialization successful, returns assertion options

application/json
get
/api/assertion

Complete WebAuthn authentication process

post
Body
userIdstringRequired

User ID

Example: test
blockNumbernumberRequired

Blockchain block number from the assertion request

Example: 1107521
Responses
200

Authentication completed successfully

application/json
post
/api/connect

Check if a user is registered with WebAuthn

get
Query parameters
userIdstringRequired

User ID to check if registered

Example: test
Responses
200

Check completed successfully

application/json
get
/api/check-user-registered

Last updated