Things5 uses keycloak as authentication server, which leverages OIDC as authentication protocol. It is possible to use a OIDC library to manage token authentication and refresh for you, like https://www.npmjs.com/package/oidc-react or https://github.com/manfredsteyer/angular-oauth2-oidc