We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1c6f40 commit 48a74baCopy full SHA for 48a74ba
.changeset/green-rockets-lie.md
@@ -7,10 +7,11 @@ Exposes autoConnect as a standalone function for use outside of react.
7
```tsx
8
import { autoConnect } from "thirdweb/wallets";
9
10
-const walletManager = createConnectionManager();
11
-const isAutoConnected = await autoConnect({
12
- client,
13
- walletManager,
+const autoConnected = await autoConnect({
+ client,
+ onConnect: (wallet) => {
+ console.log("wallet", wallet); /// wallet that is have been auto connected.
14
+ },
15
});
16
console.log('isAutoConnected', isAutoConnected) // true or false
17
```
0 commit comments