Saltar al contenido principal

PIN Configure Explorer

Configure a 6-digit security PIN for the authenticated user.

POST/auth/pin/configure

Description

Configure or update a 6-digit security PIN. PIN is hashed with bcrypt and activated automatically.

Parameters

6-digit numeric PIN

Responses

1008 Response

PIN configured successfully - PIN activated and ready to use.

4006 Response

PIN must be exactly 6 digits - Invalid format or missing data.

401 Unauthorized

Unauthorized - Valid JWT token required in Authorization header.

Test Request
https://www.swapbits.site/api
curl -X POST "https://www.swapbits.site/api/auth/pin/configure" \
  -H "Content-Type: application/json"