Implemented refreshAccessToken method