Generate a new TOTP secret
Applies to the user of the current session.
post
Authorizations
defguard_sessionstringRequired
Responses
200
New TOTP secret. It becomes active only after POST /api/v1/auth/totp.
application/json
secretstringRequired
401
Session is missing or invalid.
application/json
500
Unable to generate TOTP secret.
application/json
post/api/v1/auth/totp/init
POST /api/v1/auth/totp/init HTTP/1.1
Accept: */*
{
"secret": "text"
}Last updated
Was this helpful?