Skip to main content

URL integration

Initial steps​

With URL integration, the user completes the biometric operation on the MobbID Gateway domain, outside yours. Add a link to the gatewayUrl that your backend received when it created the process.

<a href="{{ gatewayUrl }}">Start verification</a>

The page opens in the current tab (or in a new tab using target="_blank").

When the process ends, the Gateway redirects the user to the returnUrl of the process, if one was set.

Take the decision in your backend

Retrieve the process result and check the status.

Error handling​

If an error occurs, the Gateway shows a dialog with a short description (it can be disabled). When the user accepts it, the Gateway redirects to the returnUrl. The error parameter identifies the error; some errors also include cause for more detail.

biometricErrorA problem occurred during the biometric operation.
connectionErrorThe user's device does not have a stable network connection.
hardwareErrorThe device has no camera or microphone (if needed), or it cannot be used.3 causes
  • deviceErrorThe browser cannot access the camera (generic hardware error).
  • deviceNotAvailableErrorThe device does not have a camera.
  • deviceNotReadableErrorThe camera is in use by another process.
permissionErrorThe user has not granted access to the camera or microphone (if needed).1 cause
  • deviceNotAllowedErrorThe user has not granted access to the camera.
supportErrorAn unexpected error occurred. Contact Mobbeel support.
timeoutErrorThe user exceeded the maximum time set for the process.
tokenErrorThe process has expired and is no longer valid.

Example​

returnUrl set by your backend:

https://your-app.example.com/?userId=12345

returnUrl with error and cause:

https://your-app.example.com/?userId=12345&error=hardwareError&cause=deviceNotReadableError

The original parameters are always kept.