appCheckRecaptchaSiteKey property
String
get
appCheckRecaptchaSiteKey
The web reCAPTCHA site key App Check uses on web. Empty ⇒ web falls back to the debug provider (keyless-web guard in AppCheckConfig.resolveWebProvider).
Set via --dart-define=APP_CHECK_RECAPTCHA_SITE_KEY=… or programmatically
via appCheckRecaptchaSiteKeyDefault. Resolved once on first read.
Implementation
static String get appCheckRecaptchaSiteKey {
if (_appCheckRecaptchaSiteKey == null) {
const envValue = String.fromEnvironment('APP_CHECK_RECAPTCHA_SITE_KEY');
_appCheckRecaptchaSiteKey =
envValue.isNotEmpty ? envValue : (_appCheckRecaptchaSiteKeyDefault ?? '');
}
return _appCheckRecaptchaSiteKey!;
}