assertKycWebConfigForFlutterWeb function
void
assertKycWebConfigForFlutterWeb()
Validates config for embedded web flow.
Implementation
void assertKycWebConfigForFlutterWeb() {
if (!kIsWeb) return;
final k = ApexKycConfig.instance.kycWebBaseUrl;
if (k == null || k.isEmpty) {
throw StateError(
'KYC web URL is missing. Set KYC_WEB_APP_URL on the Nest backend (e.g. http://localhost:3010) '
'so GET /sdk/kyc-verification/config returns kycWebUrl, then ensure fetchSdkConfig() runs before starting the flow.',
);
}
}