<?php
require __DIR__.'/bootstrap.php';
respond(['authenticated'=>!empty($_SESSION['authenticated']),'username'=>$_SESSION['username']??null,'csrf'=>!empty($_SESSION['authenticated'])?csrf_token():null]);
