Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface::isCsrfTokenValid
Validates a CSRF token.
Signature
public function isCsrfTokenValid(string
$intention,
string
$token )
Parameters
$intention
— string- The intention used when generating the CSRF token
$token
— string- The token supplied by the browser
Returns
- Boolean
- Whether the token supplied by the browser is correct