Invalidating an access token when user logs out

My bad. I misunderstood the statement. So, the user won’t be logged out, but the user will not be authenticated with the backend either, right? I am using Auth0’s Spring Security library to authenticate the user in the backend using the access token received then the user logs into the frontend via pre-authentication token. So, if the token expires while the user is logged in, all of their API calls will return 401. How do I get a new token in this case?