mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-30 21:01:54 +08:00
Silence HEXCLAVE_BOT_CHALLENGE_SITE_KEY warning
This commit is contained in:
parent
932a676596
commit
ee93732e8e
@ -2761,16 +2761,11 @@ export class _HexclaveClientAppImplIncomplete<HasTokenStore extends boolean, Pro
|
||||
return clientVersion;
|
||||
}
|
||||
|
||||
private _botChallengeSiteKeysWarned = false;
|
||||
private _getBotChallengeSiteKeys(): { visibleSiteKey: string, invisibleSiteKey: string } | null {
|
||||
if (!isBrowserLike()) return null;
|
||||
|
||||
const visibleSiteKey = envVars.HEXCLAVE_BOT_CHALLENGE_SITE_KEY;
|
||||
if (!visibleSiteKey) {
|
||||
if (!this._botChallengeSiteKeysWarned) {
|
||||
this._botChallengeSiteKeysWarned = true;
|
||||
console.warn("[stack-auth] HEXCLAVE_BOT_CHALLENGE_SITE_KEY is not set — bot challenge fraud protection is disabled. Set the env variable to enable it.");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user