sendlix
    Preparing search index...

    Class Auth

    Auth class implements IAuth for handling authentication. It retrieves and manages JWT tokens using the provided API key.

    Implements

    Index
    • Constructs a new Auth instance.

      Parameters

      • OptionalapiKey: string

        The API key in the format 'key.value'.

      Returns Auth

    • Returns the authorization header for the client

      Returns Promise<[string, string]>

      Promise resolving to [headerName, headerValue]