auth-controller
Activate User
Checks the activation token and updates corresponding user password in the database. Now the user may start using his password to login. The response already contains the JWT activation and refresh tokens, to simplify the user activation flow and avoid asking user to input password again after activation. If token is valid, returns the object that contains JWT access and refresh tokens. If token is not valid, returns '400 Bad Request'.
post/api/noauth/activate
Request
- Base URLhttps://demo.thingsboard.io
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
sendActivationMailboolean
Request body
Example request
{
"activateToken": "AAB254FF67D..",
"password": "secret"
}Response
OK
Example response
{
"token": "AAB254FF67D..",
"refreshToken": "AAB254FF67D.."
}Changes
No recorded changes to this operation across all 2 revisions of this API.