getString('apii:api', FlashiiUrls::PROD_API_URL), $cfg->getString('apii:id', FlashiiUrls::PROD_ID_URL) )); $authInfo = $flashii->v1()->me(); if($authInfo !== null) { $users = $seria->getUsersContext()->getUsers(); $users->syncApiUser($authInfo); $sUserInfo = $users->getUser($authInfo->getId(), 'id'); $seria->getAuthInfo()->setInfo($sUserInfo); } else $sUserInfo = null; $seria->startCSRFP( $cfg->getString('csrfp:secret', 'mewow'), $authInfo === null ? (string)filter_input(INPUT_SERVER, 'REMOTE_ADDR') : $authToken ); $seria->startTemplating(); $seria->createRouting()->dispatch();