diff --git a/checkAuth.php b/checkAuth.php new file mode 100644 index 0000000..5aa5834 --- /dev/null +++ b/checkAuth.php @@ -0,0 +1,14 @@ + false]); + exit; +} + +echo json_encode([ + "authenticated" => true, + "isAdmin" => isset($_SESSION["isAdmin"]) ? $_SESSION["isAdmin"] : false +]); +?>