UNPKG

@lit-protocol/auth-browser

Version:

Browser-specific authentication utilities for the Lit Protocol, enabling seamless connection to various blockchain networks including Ethereum, Cosmos, and Solana.

27 lines (26 loc) 607 B
import { IProvider, AuthSig } from '@lit-protocol/types'; /** * * Get Solana provider * * @returns { Promise<IProvider } */ export declare const connectSolProvider: () => Promise<IProvider>; /** * * Check and sign solana auth message * * @returns { AuthSig } */ export declare const checkAndSignSolAuthMessage: () => Promise<AuthSig>; /** * * Sign and save auth signature locally (not saved to the nodes) * * @property { any } provider * @return { Promise<AuthSig | undefined> } * */ export declare const signAndSaveAuthMessage: ({ provider, }: { provider: any; }) => Promise<AuthSig>;