Run address
Whenever you use device-to-device or verification links, you are directing your users to a URL which holds a web app where they will go through the workflow that you have set up.
We call this URL a "run address", since a user will run the workflow there, and not on the primary device.
Verification links always run in our managed app. For device-to-device, you can use our managed app, or you can self-host.
Managed apps
We use:
vl.platform.microblink.comfor running a verification linkd2d.platform.microblink.comfor running D2D flows
These apps are versioned, and your users are automatically redirected to the proper version, depending on your own workflow version.
To use the managed apps, don't specify any runAddress when you create verification links or normal transactions.
Self-hosted apps
You can self-host only the device-to-device app. Self-hosted verification link apps aren't supported.
If you self-host, the general steps are:
- Set up a JavaScript project.
- Install the Microblink Platform web SDK (
npm i @microblink/platform-sdk). - Read the
sdkquery parameter from the incoming request. - Pass its value to the SDK as the session token.
- Deploy this app somewhere, and serve it over HTTPS, so that the browser allows camera access.
The QR code sends the user to your run address with an sdk query parameter, for example https://your.run.address/?sdk=eyJzb3VyY2UiOi....
The value of that parameter is a session token for a transaction that has already started.
Pass it to the SDK as-is; don't decode or modify it:
import { createPlatformSdk } from "@microblink/platform-sdk";
const sessionToken = new URLSearchParams(window.location.search).get("sdk");
if (sessionToken) {
createPlatformSdk({ sessionToken });
}
Then set the runAddress in your primary web app to point to the URL of the secondary (self-hosted) app.