Checks whether a token is a valid csrf token for the request.
The client.
The token to validate.
Boolean determining whether the token should be cleared after validation.
Returns true if the token is valid, false otherwise.
See Implementation
Checks whether a token is a valid csrf token for the request.