two-factor-auth-controller
Check 2FA verification code (checkTwoFaVerificationCode)
Checks 2FA verification code, and if it is correct the method returns a regular access and refresh token pair.
The API method is rate limited (using rate limit config from TwoFactorAuthSettings), and also will block a user after X unsuccessful verification attempts if such behavior is configured (in TwoFactorAuthSettings).
Will return a Bad Request error if provider is not configured for usage, and Too Many Requests error if rate limits are exceeded.
post/api/auth/2fa/verification/check
Request
- Base URLhttps://demo.thingsboard.io
- Authnone declared
- TypeScripthttps://skmtc.dev/thingsboard/apis/thingsboard-rest-api/docs/api/auth/2fa/verification/check/post.tsA function with typed inputs. Its response is checked against the schema.
Query parameters
providerType'TOTP' | 'SMS' | 'EMAIL' | 'BACKUP_CODE' required
verificationCodestring required
Response
OK
Example response
{
"token": "AAB254FF67D..",
"refreshToken": "AAB254FF67D.."
}Changes
No recorded changes to this operation across all 2 revisions of this API.