CsrfTokenManagerInterface

CsrfTokenManagerInterface

interface CsrfTokenManagerInterface

Manages CSRF tokens.

Methods

<
CsrfToken getToken(string $tokenId)

Returns a CSRF token for the given ID.

CsrfToken refreshToken(string $tokenId)

Generates a new token value for the given ID.

string|null removeToken(string $tokenId)

Invalidates the CSRF token with the given ID, if one exists.

bool