TokenStorageInterface::hasToken()

bool hasToken(string $tokenId) Checks whether a token with the given token ID exists. Parameters string $tokenId The token ID Return Value bool Whether a token exists with the given ID

TokenStorageInterface::getToken()

string getToken(string $tokenId) Reads a stored CSRF token. Parameters string $tokenId The token ID Return Value string The stored token Exceptions TokenNotFoundException If the token ID does not exist

TokenStorageInterface::getToken()

TokenInterface|null getToken() Returns the current security token. Return Value TokenInterface|null A TokenInterface instance or null if no authentication information is available

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 string getToken(string $tokenId) Reads a stored CSRF token. Parameters string $tokenId The t

TokenStorageInterface

interface TokenStorageInterface The TokenStorageInterface. Methods TokenInterface|null getToken() Returns the current security token. setToken(TokenInterface $token = null) Sets the authentication token. Details TokenInterface|null getToken() Returns the current security token. Return Value TokenInterface|null A TokenInterface instance or null if no authentication information is available setToken(TokenInt

TokenStorage::setToken()

setToken(TokenInterface $token = null) Sets the authentication token. Parameters TokenInterface $token A TokenInterface token, or null if no further authentication information should be stored

TokenStorage::getToken()

TokenInterface|null getToken() Returns the current security token. Return Value TokenInterface|null A TokenInterface instance or null if no authentication information is available

TokenStorage

class TokenStorage implements TokenStorageInterface TokenStorage contains a TokenInterface. It gives access to the token representing the current user authentication. Methods TokenInterface|null getToken() Returns the current security token. setToken(TokenInterface $token = null) Sets the authentication token. Details TokenInterface|null getToken() Returns the current security token. Return Value TokenInterface|null A TokenInterface ins

TokenProviderInterface::updateToken()

updateToken(string $series, string $tokenValue, DateTime $lastUsed) Updates the token according to this data. Parameters string $series string $tokenValue DateTime $lastUsed Exceptions TokenNotFoundException if the token is not found

TokenProviderInterface::loadTokenBySeries()

PersistentTokenInterface loadTokenBySeries(string $series) Loads the active token for the given series. Parameters string $series Return Value PersistentTokenInterface Exceptions TokenNotFoundException if the token is not found