@lit-protocol/auth-browser
Advanced tools
Comparing version 7.0.4 to 7.0.5
@@ -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 |
129253
43
+ Added@lit-protocol/constants@7.0.5(transitive)
+ Added@lit-protocol/logger@7.0.5(transitive)
+ Added@lit-protocol/misc@7.0.5(transitive)
+ Added@lit-protocol/misc-browser@7.0.5(transitive)
+ Added@lit-protocol/types@7.0.5(transitive)
+ Added@lit-protocol/uint8arrays@7.0.5(transitive)
- Removed@lit-protocol/constants@7.0.4(transitive)
- Removed@lit-protocol/logger@7.0.4(transitive)
- Removed@lit-protocol/misc@7.0.4(transitive)
- Removed@lit-protocol/misc-browser@7.0.4(transitive)
- Removed@lit-protocol/types@7.0.4(transitive)
- Removed@lit-protocol/uint8arrays@7.0.4(transitive)
Updated@lit-protocol/logger@7.0.5
Updated@lit-protocol/misc@7.0.5
Updated@lit-protocol/types@7.0.5