@umbraco-cms/backoffice
    Preparing search index...

    Variable umbHttpClientConst

    umbHttpClient: Client = ...

    Export the pre-configured client for use in the backoffice. This client will be used by generated SDK functions that include security metadata, and can also be used directly for custom API calls. Note: This client is configured for cookie-based authentication and should only be used in the backoffice context where such authentication is applicable. For other contexts (e.g., public website), a different client configuration may be necessary. Note: To use the 'auth' option to send a Bearer token, the call must specify a security scheme in the OpenAPI spec, and the generated SDK function must include security metadata, or you must specify a security scheme manually. Otherwise, the 'auth' option will not be applied to the request.

    umbHttpClient.get({
    url: '/some/protected/endpoint',
    security: [{ type: 'http', scheme: 'bearer' }] // This tells the client to apply the 'auth' option
    }).then(response => {
    // handle response
    });