IFClite TypeScript API
    Preparing search index...

    Function negotiateBcfVersion

    • Pick the BCF API version to speak to a server: 3.0 when either listing names it and the server has a Foundation listing, otherwise 2.1. On 3.0 /auth and /current-user are the Foundation API's (BCF API 3.0 ยง1.1), so a server listing 3.0 without one keeps the 2.1 routes it signed in over before negotiation existed. A server that lists neither version, or nothing at all, gets 2.1 too. Both listings are public, so no credentials are sent. Pass the result as BcfApiClient's version.

      Parameters

      Returns Promise<string>