SAP Cloud SDK for JavaScript - v4.1.1
    Preparing search index...
    • Returns a JWT bearer token that can be used to call the given service. The token is fetched via a JWT bearer token grant using the user token + client credentials.

      Throws an error if there is no instance of the given service type.

      Parameters

      • jwt: string

        The JWT of the user for whom the access token should be fetched.

      • service: string | Service

        The type of the service or an instance of Service.

      Returns Promise<string>

      A JWT bearer token.

      Copyright Ⓒ 2025 SAP SE or an SAP affiliate company. All rights reserved.