Get 2FA secret key
GET
/user/2faGenerates a secret key and OTP URL for authenticator apps. Based on the URL, a QR code can be generated in the front-end.
Request
None
Request samples
Responses
Success(200)
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
secret_key
stringÂ
required
otp_auth_url
stringÂ
required
Example
{
"secret_key": "TYFM77AMC6O2RPHA",
"otp_auth_url": "otpauth://totp/VPSBG:test%test.com?secret=TYFM77AMC6O2RPHA&issuer=VPSBG&algorithm=SHA1&digits=6&period=30"
}
Last modified: 3 months ago