Beyond Identity JS SDK
Embedded
Offering the entire experience embedded in your product. Users will not need to navigate to the Beyond Identity Authenticator.
Installation
To integrate into your application, add embeddedsdk
to your dependencies:
yarn add @beyondidentity/bi-sdk-js-rolling
or
npm install @beyondidentity/bi-sdk-js-rolling
You may omit this step if you plan to import bi-embedded.js
directly (see below).
Then, in your application, initialize an instance of the Embedded SDK
TypeScript
import * as embeddedsdk from "@beyondidentity/bi-sdk-js-devel";
async function initialize(): Promise<embeddedsdk.Embedded> {
return embeddedsdk.Embedded.initialize();
}
JavaScript
This example shows how bi-embedded.js
may be imported directly without adding it as a dependency to your application. bi-embedded.js
is a UMD module and will be installed as window.embeddedsdk
.
import * as _embeddedsdk from "./bi-embedded.js";
async function initialize() {
return window.embeddedsdk.Embedded.initialize();
}
Usage
Check out the documentation for more information.