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 53d2fe4 commit 571ed2aCopy full SHA for 571ed2a
.changeset/strong-snails-jam.md
@@ -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