IFClite TypeScript API
    Preparing search index...

    Interface ClientCredentialsGrantOptions

    interface ClientCredentialsGrantOptions {
        clientId: string;
        clientSecret: string;
        errorNamespace?: string;
        fetchFn?: FetchLike;
        tokenUrl: string;
    }

    Hierarchy

    • TokenRequestOptions
      • ClientCredentialsGrantOptions
    Index
    clientId: string

    Public client id, when the server requires one.

    clientSecret: string

    Client secret; only for servers whose token endpoint demands it.

    errorNamespace?: string

    Prefix of thrown errors' name (see FoundationApiError); defaults to 'Foundation'.

    fetchFn?: FetchLike
    tokenUrl: string

    OAuth2 token endpoint, from the server's /auth discovery document.