Linking Multiple Profiles
In-App Wallets allow users to tie the same wallet address to multiple social profiles. Developers can programmatically link additional profiles at any point in their user journey.
Both the Google and Discord accounts will now be linked to the same wallet.
If the Discord account is already linked to this or another wallet, this will throw an error.
You can retrieve all profiles linked to a wallet using the getProfiles
method:
This will return an array of profiles:
You can use the useProfiles
hook to fetch linked profiles for the current wallet.
Note that the email
field above will differ based on the profile type. We list the expected field below in our list of strategies.