storacha-network / w3ui

👩‍🎤 Headless, type-safe, UI components for the next generation Web3.Storage APIs.
Other
63 stars 25 forks source link

feat: add a logout function #595

Closed travis closed 7 months ago

travis commented 7 months ago

This resets the store, deleting the local agent's private keys and saved delegations. This is better than the previous implementation, and is appropriate for use cases like using console on a public or shared computer.

This PR also has a small tweak to replace JSX.Element with ReactNode, which I've found works better in downstream applications.