<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);

require_once './includes/session.php';
require_once './includes/admin.php';
require_once './includes/utils.php';

$admin = new Admin();

try {
    $userData = $admin->authenticate('admin@admin.com', 'YOUR_PASSWORD_HERE');
    echo "SUCCESS: ";
    var_dump($userData);
} catch (Throwable $e) {
    echo "ERROR: " . $e->getMessage() . "\n";
    echo "FILE: " . $e->getFile() . "\n";
    echo "LINE: " . $e->getLine() . "\n";
}
?>
