contextFactory = $contextFactory; } /** * Reset the shared user context from the user used to generate the token * * @param UserTokenIssuerInterface $issuer * @param string $result * @param UserContextInterface $userContext * @return string * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function afterCreate( UserTokenIssuerInterface $issuer, string $result, UserContextInterface $userContext ): string { $this->contextFactory->create($userContext); return $result; } }