title: How to redirect to login page when not authorized in react-admin framework
body: <p>I have been building an admin panel using react-admin framework.
  It worked well, but I couldn't make it redirect to login page when not authenticated.
  I used authProvider.js for authentication.
  Any help would be appreciated.</p>