D-ID Client SDK - v3.0.0-0
    Preparing search index...

    Type Alias BasicAuth

    BasicAuth:
        | { token: string; type: "basic" }
        | { password: string; type: "basic"; username: string }

    HTTP basic credentials for the Agents API, given either pre-encoded or as a username and password.

    Like BearerToken these are account-wide and belong in a trusted environment, never in a client bundle. The SDK sends them as Authorization: Basic <credentials>~<connectionId>, where the token form is used as the credentials as-is and the username/password form is base64-encoded as username:password first; the trailing per-connection id is stripped by the D-ID authorizer before the credentials are validated.

    Type Declaration

    • { token: string; type: "basic" }
      • token: string

        Credentials that are already base64-encoded, as username:password. Used as they are, so they are not encoded a second time.

      • type: "basic"

        Discriminator selecting this variant of Auth.

    • { password: string; type: "basic"; username: string }
      • password: string

        The account's password; base64-encoded with the user name before it is sent.

      • type: "basic"

        Discriminator selecting this variant of Auth.

      • username: string

        The account's user name; base64-encoded with the password before it is sent.