Added token refreshing to client v1