Files
Schule-Sportanmeldung-Backend/api/auth/me.php
DOMINIK SCHRADER 007dfc57fd Initial Commit
2025-12-01 11:30:25 +01:00

6 lines
139 B
PHP

<?php
$auth = isset($_SESSION['user']);
echo json_encode([
'authenticated' => $auth,
'user' => $auth ? $_SESSION['user'] : null
]);