Files
fraxle 71860b9dd9 5.4.0
Restructure
New Journal entries
Colour tabs update with wind
2026-08-31 15:12:45 +01:00

8 lines
294 B
PHP

<?php
// GET -> { ok:true, user: { email } } if signed in, else { ok:true, user:null }.
// Always 200 - this is a status check, not an auth gate.
require __DIR__ . '/../lib/bootstrap.php';
$user = current_user();
json_out(['ok' => true, 'user' => $user ? ['email' => $user['email']] : null]);