using refresh tokens in client library