sets credential to client after refreshing it

Invalid Credential error happens when one requests
if his or her access token needs to be refreshed.
v0.2.1