TokenStorageInterface
interface TokenStorageInterface
Stores CSRF tokens.
Methods
string
getToken(string $tokenId)
Reads a stored CSRF token.
setToken(string $tokenId, string $token)
Stores a CSRF token.
string|null
removeToken(string $tokenId)
Removes a CSRF token.
bool
hasToken(string $tokenId)
Checks whether a token with the given token ID exists.
Details
at line line 32
string
getToken(string $tokenId)
Reads a stored CSRF token.
at line line 40
setToken(string $tokenId, string $token)
Stores a CSRF token.
at line line 50
string|null
removeToken(string $tokenId)
Removes a CSRF token.
at line line 59
bool
hasToken(string $tokenId)
Checks whether a token with the given token ID exists.