Set up automatic token refresh via keycloak and/or show a more verbose error if it has expired rather than just json syntax parsing error