Lit resrouce ability request builder for creating resource ability requests.

Example

import { ResourceAbilityRequestBuilder } from '@lit-protocol/auth-helpers';

const builder = new ResourceAbilityRequestBuilder();

builder
.addPKPSigningRequest('*') // PKP Signing
.addLitActionExecutionRequest('*') // Lit Action Execution
.addAccessControlConditionSigningRequest('*') // ACC Signing
.addAccessControlConditionDecryptionRequest('*') // ACC Decryption
.addRateLimitIncreaseAuthRequest('*'); // RLI Authentication

const requests = builder.build();

Hierarchy

  • ResourceAbilityRequestBuilder

Constructors

Properties

requests: {
    ability: LitAbility;
    resource: ILitResource;
}[] = []

Methods

Generated using TypeDoc