Multichain
Web Intents
Working with Web Intents

Working with Web Intents

Web Intents provide flows for working with de[id] actions, such as signing in, signing up, linking socials, etc. They make it possible for users to interact with de[id] in the context of your site.

Usage

Pass the intent in the url and the de[id] multichain sign up modal will appear based on what you pass in.

eg. <url>?intent.popup_action=sign_in this will open sign in modal when user lands on the page

eg. <url>?intent.link_social=telegram this will open sign in modal with telegram hidden in the options if user is not signed in, and opens social edit modal if user is signed in (this is not case sensitive so you can pass telegram or TELEGRAM). The reason why the social to link is HIDDEN fom the sign in modal is to reduce confusion, and prevent users from creating a new de[id] when what they actually want to do is to link the social to an existing one.

You can also stack intents, so you can do <url>?intent.link_social=telegram&intent.link_social=discord and it will apply both. In general all intents can be stacked. You can also stack intents of different types like link_social with popup_action.

Supported Intents

intent.popup_action=sign_up: opens sign up modal (this is the new sign up flow), works when user is not signed in.

intent.popup_action=sign_in: opens sign in modal, works when user is not signed in.

intent.popup_action=edit_socials: opens edit socials tab in de id modal, works when user is signed in.

intent.popup_action=edit_wallets: opens edit wallets tab in de id modal, works when user is signed in.

intent.link_social=[IdentityProviderName]: opens sign in modal without the listed social if user is not signed in. If they are already signed in, it opens the edit socials de id modal. This is case-insensitive as long as the value passed in follows the type IdentityProviderName