finished Protected Routes

This commit is contained in:
CodeServer
2022-03-11 08:45:17 +00:00
parent a20c839324
commit 686c8fe008
6 changed files with 87 additions and 7 deletions
+8
View File
@@ -0,0 +1,8 @@
import { useContext } from "react";
import AuthContext from "../context/AuthProvider";
const useAuth = () => {
return useContext(AuthContext);
}
export default useAuth;