Skip to content

Commit 7f0a5de

Browse files
committed
fix: readme
1 parent e653358 commit 7f0a5de

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@ const wallet = await connect({ modalMode: "neverAsk" })
8181
await disconnect({ clearLastWallet: true })
8282
```
8383

84+
## Handle webwallet logout
85+
86+
In your application, import `handleWebwalletLogoutEvent` and pass a callback to manage the state of your dapp
87+
88+
```js
89+
useEffect(() => {
90+
handleWebwalletLogoutEvent(() => {
91+
// clear state
92+
})
93+
}, [])
94+
```
95+
8496
## Listen to account change
8597

8698
```js

0 commit comments

Comments
 (0)