JWT token login and handle timeseries reponse format