When the JWT token expires, there are connection failures that don't make it clear that its an auth failure.
We should check if JWT token is valid, and if not, use saved creds to login. If login is not done, prompt user to press login again, with saved creds. Currently the saved creds are removed if we press logout I believe.
Secondly, when any failure occurs due to auth failure, automatic regeneration of JWT key should be done.
When the JWT token expires, there are connection failures that don't make it clear that its an auth failure.
We should check if JWT token is valid, and if not, use saved creds to login. If login is not done, prompt user to press login again, with saved creds. Currently the saved creds are removed if we press logout I believe.
Secondly, when any failure occurs due to auth failure, automatic regeneration of JWT key should be done.