Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
use RuntimeException;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Contracts\Service\ResetInterface;
use function array_map;
use function explode;
use function implode;

/**
* @final
*/
class TrustedDeviceTokenStorage
class TrustedDeviceTokenStorage implements ResetInterface
{
private const TOKEN_DELIMITER = ';';

Expand Down Expand Up @@ -100,6 +101,12 @@ public function clearTrustedToken(string $username, string $firewall): void
$this->updateCookie = true;
}

public function reset(): void
{
$this->updateCookie = false;
$this->trustedTokenList = null;
}

/**
* @return TrustedDeviceToken[]
*/
Expand Down