I made it so that with each page refresh, a new csrf token is generated in the session. But I noticed that if the user is sitting on one page - for example, editing his data, and opens another tab with the site - then he is given a new token, that is, on the old page - he will not be able to send more requests, since the token will already be different .
How is this solved? Or did I incorrectly implement the token verification system?