OAuth2Config: {
    client_id: string;
    client_secret: string;
    id: string;
    refresh_token: string;
    scopes?: string[];
    token_url: string;
    type: "oauth2";
}

Configuration for OAuth2 credentials with automatic token refresh.

Type declaration

  • client_id: string

    Required. OAuth2 client ID.

  • client_secret: string

    Required. Input only. OAuth2 client secret. Write-only; never returned in responses.

  • id: string
  • refresh_token: string

    Required. Input only. OAuth2 refresh token. Write-only; never returned in responses.

  • Optionalscopes?: string[]

    Optional. List of OAuth2 scopes.

  • token_url: string

    Required. OAuth2 token endpoint URL for refreshing access tokens.

  • type: "oauth2"