@lit-protocol/auth-browser
TypeScript icon, indicating that this package has built-in type declarations

7.0.2 • Public • Published

Quick Start

This submodule provides functionalities from various modules within the Lit SDK, enabling users to authenticate in the browser and connect to different blockchain networks (Ethereum, Cosmos, and Solana) with convenience, while also providing a function to disconnect from the Ethereum network.

node.js / browser

yarn add @lit-protocol/auth-browser

Generate an authSig with long expiration

const expiration = new Date(Date.now() + 1000 * 60 * 60 * 99999).toISOString();

const authSig = LitJsSdk_authBrowser.checkAndSignAuthMessage({chain: 'ethereum', expiration: expiration});

Dependencies (19)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @lit-protocol/auth-browser

    Weekly Downloads

    11,142

    Version

    7.0.2

    License

    MIT

    Unpacked Size

    129 kB

    Total Files

    23

    Last publish

    Collaborators

    • glitch003
    • adarsh-kumar28
    • websaam
    • hwrdtm
    • famura
    • maximushaximus
    • spacesailor
    • awisniew