This API documentation is for Ballerina 1.2.0. View API documentation for the latest release.

Record - oauth2 : OutboundOAuth2CacheEntry

The data structure, which stores the values received from the authorization/token server to use them for the latter requests without requesting tokens again.


  • accessToken string
  • Access token received from the authorization endpoint

  • refreshToken string
  • Refresh token for the refresh token server

  • expTime int
  • Expiry time (milliseconds since the Epoch) of the access token