sets credential to client before refreshing

Client needs refresh_token when it refreshes credential.
v0.2.2