Przejdź do głównej zawartości

Class: FallbackBotProtectionManager

Vendor-agnostic token provider interface

Implements

Constructors

Constructor

new FallbackBotProtectionManager(primary, fallback): FallbackBotProtectionManager

Parameters

primary

BotProtectionTokenProvider

fallback

BotProtectionTokenProvider | null

Returns

FallbackBotProtectionManager

Methods

destroy()

destroy(): void

Cleanup widget and script resources

Returns

void

Implementation of

BotProtectionTokenProvider.destroy


execute()

execute(options?): Promise<string | null>

Get a fresh bot protection token. Handles: in-flight deduplication, timeout, singleton script loading.

Parameters

options?
action?

string

Operation name (e.g. 'CustomerCreate') for action validation

timeoutMs?

number

Timeout in ms (default: 10000)

Returns

Promise<string | null>

Token string or null if unavailable (adblock, timeout, error)

Implementation of

BotProtectionTokenProvider.execute