I am a greenhorn of WSO2 ESB and confusing with configuration of gmail connector.
Based on the document (https://docs.wso2.com/display/ESBCONNECTORS/Configuring+Gmail+Operations), I have to fill gmail init element as below,
In my thought, the accessToken and refreshToken are only generated dynamically after user consent in OAuth2 and will expire in certain time. So why need to write these into init part?
In the integration use cases, One of the main issues is accesstokens getting expired and need human interaction to continue the service.
From connector side, This method added to renew the tokens using refresh token.