Skip to main content

TokenManager

Service layer for the subscriber token lifecycle. Handles token generation, reactivation, revocation, and reset — each operation fires the appropriate action hook and invalidates any affected feed cache entries.

Resolve it from the container via $container->make( \Benecaster\Token\TokenManager::class ). You should not call its methods directly from plugin code; prefer the lifecycle hooks (benecaster_token_generated, benecaster_token_reactivated, benecaster_token_revoked, benecaster_token_reset) to react to token events.