<?php
require __DIR__.'/common.php';if(is_file(__DIR__.'/private/auth.json'))throw new RuntimeException('Auth no replay');$before=$source();if(count($before['actor'])!==1)throw new RuntimeException('Actor');require __DIR__.'/app-init.php';$token=(new \app\p\logic\Login())->userTokenSet($before['actor'][0]);$save('auth.json',['token'=>$token,'actor'=>$before['actor'],'password_login_tested'=>false]);$save('auth-native.json',NFGate::$journal);echo json_encode(['lane'=>$lane,'original_token_chain'=>true,'password_login_tested'=>false]),"\n";
