generate Two Factor Secret Using JWT With Id

GET {{baseUrl}}/api/two-factor/secret

Generate a Two Factor secret that can be used to enable Two Factor authentication for a User. The response will contain both the secret and a Base32 encoded form of the secret which can be shown to a User when using a 2 Step Authentication application such as Google Authenticator.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"secret":"\u003cstring\u003e","secretBase32Encoded":"\u003cstring\u003e"}