UNPKG

@lit-protocol/auth-helpers

Version:

Advanced authentication utilities for managing blockchain resource permissions and capabilities within the Lit Protocol ecosystem. Built on top of SIWE (Sign-In with Ethereum) and SIWE-RECAP for robust authentication flows.

23 lines (22 loc) 1.15 kB
import { BaseSiweMessage, WithCapacityDelegation, WithRecap } from '@lit-protocol/types'; /** * Creates a SIWE * @param { BaseSiweMessage } params - The parameters for creating the SIWE message. * @returns A promise that resolves to the created SIWE message as a string. * @throws An error if the walletAddress parameter is missing. */ export declare const createSiweMessage: <T extends BaseSiweMessage>(params: T) => Promise<string>; /** * Creates a SIWE message with recaps added to it. * * @param { WithRecap } params - The parameters for creating the SIWE message with recaps. * @returns A Promise that resolves to a string representing the SIWE message. */ export declare const createSiweMessageWithRecaps: (params: WithRecap) => Promise<string>; /** * Creates a SIWE message with capacity delegation. * @param { WithCapacityDelegation } params - The parameters for creating the SIWE message. * @returns A Promise that resolves to the created SIWE message. * @throws An error if litNodeClient is not provided. */ export declare const createSiweMessageWithCapacityDelegation: (params: WithCapacityDelegation) => Promise<string>;