I use IdentityServer4 to generate tokens. Tokens have an Expiration associated with them. I also have a grid that has an MVC handler on the secured Controller that makes a call. I have a series of grid filter controls whose purpose is to allow the user to filter the data that shows up in the grid then a refresh button.
Now, to glue it all together, if the Token expires and the user hits refresh on the filter button which tells the grid to "read" again, I get redirected to the error page. Instead, I want Refresh button action to have the token refreshed using the typical process and then for the request to go through. Because your grid makes a call to the controller I don't see how authorization can intercept the request.
Any idea how I can get the expired token refreshed on Grid.Read?