CSRF token time life
This is the same question I had asked myself and I wanted to increase the lifetime to something like 6 hours.

However, the point behind CSRF tokens is that they change frequently so that nobody can try to steal one of those tokens and then use it to make a forged request. Here's the workflow I ended up using in my application:


Request a CSRF token.
Use the token to make requests.
If the request fails because the token has expired, go to step 1.


Hope it helps. Happy coding.