Skip to content

Start authenticator enrollment

Issues a fresh authenticator secret and the otpauth URI to scan. Two-factor is not active until the code is confirmed.

POST/v1/users/me/two-factor/enrollment
Requires an access token.

Header Parameters

Authorization*string

OAuth 2.0 bearer token.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://auth.ecomiq.pe/v1/users/me/two-factor/enrollment" \  -H "Authorization: Bearer <token>"
{  "sharedKey": "ejemplo",  "authenticatorUri": "https://mi-tienda.ecomiq.app/products/polo-de-algodon"}