<?php
declare(strict_types=1);$_SERVER['HTTP_HOST']='customer.read.invalid';$_SERVER['HTTP_PLATFORM']='POC';$_SERVER['REQUEST_METHOD']='GET';$_SERVER['REQUEST_URI']='/api/points.Log/list';$_SERVER['SCRIPT_NAME']='/index.php';require __DIR__.'/app.php';require __DIR__.'/data.php';$app=coreApp('AUTH_RECHECK');require_once $root.'/app/api/common.php';$tokens=json_decode(file_get_contents($runtime.'/tokens.json'),true);$u=\app\api\model\User::getUserByToken($tokens['U1']);ck($u&&(int)$u['user_id']===actorId()&&(int)$u['store_id']===10001,'Original same-token Auth including Store user read');$controller=new \app\api\controller\points\Log($app);saveOnce('auth-recheck.json',['original_same_token'=>true,'no_new_token'=>true,'actor'=>actorId(),'tenant'=>10001,'HTTP'=>0,'DML'=>0]);echo json_encode(['lane'=>$lane,'same_token_original_auth'=>true,'HTTP'=>0,'DML'=>0]),"\n";
