Get 2FA secret key
GET
https://api.vpsbg.eu/v1/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
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