I have a custom AuthProvider in react-admin I am using the checkAuth function and the logic seems to be running correctly: