• This function generates a long lived access token for a user token. It can be used to invoke long running processes.

    Parameters

    • authEndpoint: string

      URL for id-service authEndpoint.

    • serviceAccountToken: string

      A valid service account token with permission GENERATE_LONG_LIVED_TOKEN granted.

    • userAccessToken: string

      User access token to extend the validity period for.

    • Optional validityDurationInSeconds: number

      Token expiration time in seconds. If not given, it will be defaulted to 2592000 (30 days).

    Returns Promise<TokenResult>

    Long lived access token.

Generated using TypeDoc