Record - oauth2 : RefreshConfig

The `RefreshConfig` record can be used to pass the configurations for refreshing the access token of password grant type.

Fields

  • refreshUrl string
  • Refresh token URL for the refresh token server

  • scopes string[]
  • Scope of the access request

  • credentialBearer CredentialBearer (default http:AUTH_HEADER_BEARER)
  • How authentication credentials are sent to the authorization endpoint

  • clientConfig ClientConfiguration (default {})
  • HTTP client configurations which calls the authorization endpoint