admin-controller
Update JWT Settings (saveJwtSettings)
Updates the JWT Settings object that contains JWT token policy, etc. The tokenSigningKey field is a Base64 encoded string.
Available for users with 'SYS_ADMIN' authority.
post/api/admin/jwtSettings
Request body
Example request
{
"tokenExpirationTime": 9000,
"refreshTokenExpTime": 604800,
"tokenIssuer": "thingsboard.io",
"tokenSigningKey": "dkVTUzU2M2VMWUNwVVltTUhQU2o5SUM0Tkc3M0k2Ykdwcm85QTl6R0RaQ252OFlmVDk2OEptZXBNcndGeExFZg=="
}Response
OK
Example response
{
"token": "AAB254FF67D..",
"refreshToken": "AAB254FF67D.."
}