@squidcloud/client
    Preparing search index...

    Interface SquidAuthProvider

    Authentication data provider for Squid requests.

    interface SquidAuthProvider {
        integrationId: string;
        getToken(): undefined | string | Promise<undefined | string>;
    }
    Index

    Properties

    Methods

    Properties

    integrationId: string

    Optional Auth integration id. Sent as a part of all Squid requests to the backend.

    Methods

    • Returns a valid AccessToken or undefined if there is no active authorized session. Called by Squid every time a Squid client makes requests to the Squid backend.

      Returns undefined | string | Promise<undefined | string>