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