Advanced Integration: Embed the Process Into Your Own Pages
The basic version of integration involves redirecting the user to the address returned by the conversation creation API. This solution is simple, effective, and does not require additional integration work beyond defining the page to which the user will be redirected after the process is completed.
Authologic also provides the option to embed the verification process within your website. Unlike simple redirection, this solution requires you to take into account the following:
- this type of integration requires additional work,
- including the process within your website may require rebuilding the navigation,
- it should be taken into account that some verification methods require opening their own window,
- the webSDK code should be systematically updated
widgetId) necessary to run the integration. An invalid widget ID will result
in a browser CORS(opens in new tab) error. For testing purposes you can
use development_only as the value of the widgetId. It will disable security and will only work in
the sandbox environment.layoutUrl field pointing to the page where the webSDK is embedded.
Sometimes, there is a need to move process to another site and after the process is completed, Authologic must know
where to redirect the user.Unlike old WebSDK, OmniID WebSDK is a single, framework-agnostic package: the same integration works whether your frontend is plain JavaScript, React, Vue, or Angular, so there is no separate integration guide per technology.
Install
# npm
npm install @authologic/omni-websdk
# yarn
yarn add @authologic/omni-websdk
# pnpm
pnpm add @authologic/omni-websdk
# bun
bun add @authologic/omni-websdk
Quick Start
<div id="authologic"></div>
import { init } from "@authologic/omni-websdk";
init({
widgetId: "your-widget-id",
conversationId: "conversation-id-from-your-backend",
environment: "sandbox",
});
The widget mounts into #authologic and opens in a modal.
For the full API reference — configuration options, lifecycle hooks, appearance theming, and error handling — see
the package page on npm: @authologic/omni-websdk(opens in new tab).