AuthenticationTwo-factor authentication
Get the TOTP URI
POST
Use this endpoint to get the TOTP URI
sessioncookie
gamma.session_token<token>The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.
application/json- body
password?stringUser password
Successful response
application/json- response
totpURI?stringExample Request
curl -X POST 'http://localhost:3000/api/auth/two-factor/get-totp-uri' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "totpURI": "string"}