The connection and refresh the sessions is a key part when we are connecting web or mobile apps to the Salesforce platform. The OAuth 2.0 refresh token flow renews access tokens issued by the OAuth 2.0 web server flow or the OAuth 2.0 user-agent flow.