Overview & Key Concepts
The Auth Manager handles authentication flows and session persistence.AuthContext Creation
This method caches two components: Session Key Pair: A temporary cryptographic key pair generated on the client side that acts as a temporary identity for the client application. It consists of:- Public key - shared with the Lit nodes
- Secret key (private key) - kept securely on the client
Storage Options Comparison
Select the appropriate network environment based on your development stage and requirements. Each network offers different characteristics for testing and production use cases.| Storage Type | Persistence | Use Case | Environment |
|---|---|---|---|
| localStorage | Survives page refresh & browser restart | Web applications, client-side storage | Browser |
| localStorageNode | File-based persistent storage | Node.js applications, server-side scripts | Node.js only |
| custom | Depends on implementation | Database storage, encrypted storage, cloud storage | Custom |