<?php
declare(strict_types=1);$_SERVER['HTTP_HOST']='customer.read.invalid';$_SERVER['HTTP_PLATFORM']='POC';$_SERVER['REQUEST_METHOD']='GET';$_SERVER['REQUEST_URI']='/api/user.UserWeight/byDate';$_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,'Same unique original token valid');$controller=new \app\api\controller\user\UserWeight($app);saveOnce('guard.json',['actor'=>actorId(),'original_API_auth'=>true,'original_store_controller'=>true,'same_token_no_renewal'=>true,'HTTP'=>0,'DML'=>0]);echo json_encode(['lane'=>$lane,'same_token_auth'=>true,'HTTP'=>0,'DML'=>0]),"\n";
