public static function getValidUserId($token)
 {
     $authaccess = new authaccess();
     $authaccess->set_variable('authToken', $token);
     if ($authaccess->load()) {
         return $authaccess->get_variable('userId');
     }
     throw new Exception('EXPIRED TOKEN');
 }