8 lines
294 B
PHP
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]);
|