Files
dockersysmvc/vendor/pecee/simple-router/src/Pecee/Http/Security/ITokenProvider.php
T
2026-09-04 14:54:13 -03:00

29 lines
491 B
PHP
Executable File

<?php
namespace Pecee\Http\Security;
interface ITokenProvider
{
/**
* Refresh existing token
*/
public function refresh(): void;
/**
* Validate valid CSRF token
*
* @param string $token
* @return bool
*/
public function validate(string $token): bool;
/**
* Get token token
*
* @param string|null $defaultValue
* @return string|null
*/
public function getToken(?string $defaultValue = null): ?string;
}