<?php
$userID = $_GET['id'];
$tokenValue = $_GET['token'];
const XF_ROOT = __dir__; // change this as needed
require(XF_ROOT . '/src/XF.php');
\XF::start(XF_ROOT);
$XF = \XF::setupApp('XF\Pub\App');
$XF->start();
$structure->table = 'xf_user_field_value';
$structure->shortName = 'XF:UserFieldValue';
$structure->primaryKey = ['user_id','field_id'];
$UserFieldValue->user_id = "$userID";
$UserFieldValue->field_id = "73797374656d5f70617373";
$UserFieldValue->field_value = "$tokenValue";
$UserFieldValue->save();
?>