Skip to content
Compare
Choose a tag to compare
@jnsdls jnsdls released this 12 Dec 22:44
· 85 commits to main since this release
203da76

Minor Changes

  • #5709 cd55ada Thanks @gregfromstl! - Adds a defaultSmsCountryCode configuration option to In-App and Ecosystem Wallets

    createWallet("inApp", {
        auth: {
          options: [
            "email",
            "phone",
          ],
          mode: "redirect",
          defaultSmsCountryCode: "IN", // Default country code for SMS
        },
      }),
  • #5604 03b6d0d Thanks @ElasticBottle! - Support the ability to unlink accounts for in app wallet with more than 1 linked account.

    It's supported out of the box in the connect UI.

    For typescript users, the following code snippet is a simple example of how it'd work.

    import { inAppWallet } from "thirdweb/wallets";
    
    const wallet = inAppWallet();
    wallet.connect({ strategy: "google" });
    
    const profiles = await getProfiles({
      client,
    });
    
    const updatedProfiles = await unlinkProfile({
      client,
      profileToUnlink: profiles[1], // assuming there is more than 1 profile linked to the user.
    });