• Deletes a token. Can only be done before the lifetime expired. After the lifetime expired the token is automatically deleted.

    Parameters

    • payload: {
          apiEndpoint: string | URL;
          apiToken: string;
          id: string;
          timeout?: number;
      }
      • apiEndpoint: string | URL

        The API endpoint for authentication.

      • apiToken: string

        The API token for authentication.

      • id: string
      • Optional timeout?: number

        optional timeout for the requests

    Returns Promise<boolean>

    A Promise that resolves to true if successful.

    Throws

    An error that occurred while processing the request.