Added: fully working signin/signup system with routing
This commit is contained in:
6
frontend/app/hooks/useIsAutheticated.js
Normal file
6
frontend/app/hooks/useIsAutheticated.js
Normal file
@ -0,0 +1,6 @@
|
||||
import { useAuth } from "../context/AuthContext";
|
||||
|
||||
export function useIsAutheticated() {
|
||||
const { authState } = useAuth();
|
||||
return authState.authenticated
|
||||
}
|
Reference in New Issue
Block a user