The Anti Forgery Token implementation is originally from MVC where you’d call AntiForgery.Validate() to validate the token as seen in this answer:
AntiForgery.Validate()