mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-10 19:52:08 +00:00
35dc26d741
- Fixed issue with `InputFile` not setting file-name properly. - Fixed issue with `InputFile` not setting the correct index when posting certain arrays. - Made Csrf-token cookie provider more versitile by creating new `CookieTokenProvider` and `ITokenProvider` classes. - Strict-checks optimisations. - Updated documentation to reflect new changes.
21 lines
289 B
PHP
21 lines
289 B
PHP
<?php
|
|
|
|
namespace Pecee\Http\Security;
|
|
|
|
interface ITokenProvider
|
|
{
|
|
|
|
/**
|
|
* Refresh existing token
|
|
*/
|
|
public function refresh();
|
|
|
|
/**
|
|
* Validate valid CSRF token
|
|
*
|
|
* @param string $token
|
|
* @return bool
|
|
*/
|
|
public function validate($token);
|
|
|
|
} |