UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

14 lines 369 B
import { useContext } from 'react'; import { AuthContext } from './AuthContext'; export var defaultAuthParams = { loginUrl: '/login', afterLoginUrl: '/', }; /** * Get the authProvider stored in the context */ var useAuthProvider = function () { return useContext(AuthContext); }; export default useAuthProvider; //# sourceMappingURL=useAuthProvider.js.map