Call check when changing resources
When I am inactive for more than 10 minutes and the access token expires and then I click in the menu to move to another resource I get Unauthorized error. How can I trigger check() when changing resources?
check method is a crucial part of handling authentication within refine, ensuring that users are authenticated before accessing certain resources. It's used to verify if the user is authenticated and, based on that, allows or denies access to resources. For more detailed information on how to implement or trigger the check method under specific conditions such as changing resources or after inactivity, I recommend consulting the refine documentation directly, especially sections related to the authProvider and its check method. Here are some links that might be helpful:check method works and its implementation: Auth Provider - check method (https://refine.dev/docs/authentication/auth-provider#check)check method when changing resources or after a period of inactivity.checkcheckcheckcheckcheckauthProvider