<?php
require_once __DIR__ . '/../includes/auth.php';
send_cors_headers();

if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
    json_response(['error' => 'Method not allowed'], 405);
}

logout_token();
json_response(['ok' => true]);
