I'm trying to add a token to a razor view which is being sent through an HTTP header (I'm following the docs). Unfortunately, the default expiration timeout is different from the login session (120 mins vs 20, if I'm not mistaken).
So, is there a way to change the expiration time of the token? The options passed to the AAddAntiforgery
method will let me setup the cookie lifetime, but what about the token? Do I need to change the session timeout?
Thanks