Add csrf token to session
There is the possibility of store a variable within the sessions eg:
$csrftoken = bin2hex(random_bytes(32));
$Authenticate->storeResult($csrftoken, "csrftoken");
In this way, it gives syntax error within the authentication
Or what way could I use to have a security token csrf?
Thank you