KYC widget
POST /v1/kyc/widget/session with locale fr. The session lasts 15 minutes. On this origin the widget URL is /identity/kyc-widget.
Recipe
Embed the KYC widget and wait for kyc.updated.
- POST /v1/kyc/widget/session with locale "fr".
- Open the returned URL in a WebView or a redirect.
- A session older than 15 minutes is KYC_SESSION_EXPIRED.
React Native WebView
import { WebView } from "react-native-webview";
export function KycWebView() {
return <WebView source={{ uri: "https://teddoh.io/identity/kyc-widget" }} />;
}Android WebView
WebView webView = findViewById(R.id.kyc);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl("https://teddoh.io/identity/kyc-widget");Session body uses locale: "fr". Widget URL is /identity/kyc-widget, not a tenant host.