Jwt token and user ssotoken max Effective time

At present, I have integrated the electronic version of the sdk in the application according to the process in the documentation and demo for screencasting. There are two tokens in the process of use.

jwttoken is used for sdk authentication. When generating, the valid time can be specified in the payload
User ssotoken is used to log in, obtained through the interface

But my app users may be online for a long time and the app won’t restart, so there are two problems:

  1. Will jwt token and ssotoken expire, and the maximum time for expiration
  2. If it will expire, whether there is a relevant interface in the sdk or in the background that can refresh the extended time
  3. If it expires and cannot be extended, does the SDK need to go through the initialization and login process again?