'Unauthorized', 'debug' => [ 'session_exists' => !empty($_SESSION['username']), 'token_method_tried' => $authMethod, 'token_found' => $token ? true : false ] ]); exit; }