Adding sample code to refresh token