Embedded KYC/KYB Component

The Okoora Embedded KYC/KYB Component allows you to integrate the Okoora onboarding and verification flow directly into your website or application.

1. Setup a New Connected Account

Create the Connected Account through the Kyc/Setup API endpoint and obtain its connectedAccountId.


2. Authorize a Connected Account

Authorize the Connected Account through the Kyc/Authorize API endpoint.


3. Initialize the KYC\B Component

Pass the authorization code and matching verifier to the frontend:

await OkooraKybSDK.init({
    env: "prod",
    authCode: authorizationCode,
    codeVerifier: codeVerifier
});

const element = OkooraKybSDK.createElement("kyb");
element.mount("kyb-container");

Supported environments:

  • demo
  • prod

The SDK exchanges the authorization code for a temporary session and opens the KYC/KYB component.

To reopen the component, generate a new PKCE pair and request a new authorization code.



Did this page help you?