Skip to content

Commit 571ed2a

Browse files
committed
chore: add changeset
1 parent 53d2fe4 commit 571ed2a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.changeset/strong-snails-jam.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
"thirdweb": minor
3+
---
4+
5+
Support the ability to unlink accounts for in app wallet with more than 1 linked account.
6+
7+
It's supported out of the box in the connect UI.
8+
9+
For typescript users, the following code snippet is a simple example of how it'd work.
10+
11+
```typescript
12+
import { inAppWallet } from "thirdweb/wallets";
13+
14+
const wallet = inAppWallet();
15+
wallet.connect({ strategy: "google" });
16+
17+
const profiles = await getProfiles({
18+
client,
19+
});
20+
21+
const updatedProfiles = await unlinkProfile({
22+
* client,
23+
* profileToUnlink: profiles[1],// assuming there is more than 1 profile linked to the user.
24+
* });
25+
```

0 commit comments

Comments
 (0)