adding refreshAuthentication - WIP