Implemented refresh_token method