public function authorizeToken($TokenKey)
{
try {
Gdn::database()->sql()->update('UserAuthenticationToken uat')->set('Authorized', 1)->where('Token', $TokenKey)->put();
} catch (Exception $e) {
return false;
}
return true;
}