Lit resrouce ability request builder for creating resource ability requests.
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 Authenticationconst requests = builder.build(); Copy
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 Authenticationconst requests = builder.build();
Adds an access control condition decryption request to the builder.
The ID of the resource.
The builder instance.
Adds an access control condition signing request to the builder.
Adds a Lit action execution request to the builder.
Adds a PKP signing request to the builder.
Adds a rate limit increase authentication request to the builder.
Builds the array of resource ability requests.
The array of resource ability requests.
Lit resrouce ability request builder for creating resource ability requests.
Example