string|null removeToken(string $tokenId) Removes a CSRF token.
string getToken(string $tokenId) Reads a stored CSRF token.
CsrfToken getToken(string $tokenId)
interface TokenGeneratorInterface Generates CSRF tokens. Methods
class UriSafeTokenGenerator implements
setToken(string $tokenId, string $token) Stores a CSRF token.
CsrfToken refreshToken(string $tokenId)
bool hasToken(string $tokenId) Checks whether a token with the given token ID exists.
Page 1 of 4