New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lit-protocol/auth-browser

Package Overview
Dependencies
Maintainers
0
Versions
524
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lit-protocol/auth-browser - npm Package Compare versions

Comparing version 7.0.4 to 7.0.5

14

package.json

@@ -24,3 +24,3 @@ {

],
"version": "7.0.4",
"version": "7.0.5",
"dependencies": {

@@ -39,8 +39,8 @@ "@ethersproject/abstract-provider": "5.7.0",

"ethers": "^5.7.1",
"@lit-protocol/constants": "7.0.4",
"@lit-protocol/logger": "7.0.4",
"@lit-protocol/misc": "7.0.4",
"@lit-protocol/misc-browser": "7.0.4",
"@lit-protocol/types": "7.0.4",
"@lit-protocol/uint8arrays": "7.0.4",
"@lit-protocol/constants": "7.0.5",
"@lit-protocol/logger": "7.0.5",
"@lit-protocol/misc": "7.0.5",
"@lit-protocol/misc-browser": "7.0.5",
"@lit-protocol/types": "7.0.5",
"@lit-protocol/uint8arrays": "7.0.5",
"tslib": "1.14.1"

@@ -47,0 +47,0 @@ },

@@ -1,18 +0,42 @@

# Quick Start
# Auth Browser
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.
Browser-specific authentication utilities for the Lit Protocol, enabling seamless connection to various blockchain networks including Ethereum, Cosmos, and Solana.
### node.js / browser
## Installation
```
```bash
yarn add @lit-protocol/auth-browser
```
## Generate an authSig with long expiration
## Quick Start
```typescript
import { checkAndSignAuthMessage } from '@lit-protocol/auth-browser';
// Generate an authSig with long expiration
const expiration = new Date(
Date.now() + 1000 * 60 * 60 * 24 * 30
).toISOString();
const authSig = await checkAndSignAuthMessage({
chain: 'ethereum',
expiration: expiration,
});
```
const expiration = new Date(Date.now() + 1000 * 60 * 60 * 99999).toISOString();
const authSig = LitJsSdk_authBrowser.checkAndSignAuthMessage({chain: 'ethereum', expiration: expiration});
## Key Features
```
- Multi-chain authentication support
- Ethereum
- Cosmos
- Solana
- Convenient network connection management
- Automatic signature generation
- Flexible expiration handling
- Network disconnection utilities
## Authentication Methods
- Standard Authentication: Quick connect with default settings
- Custom Expiration: Control signature validity period
- Multi-Chain Support: Connect to different networks
- Network Management: Connect and disconnect as needed
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc