. /** * Moodle Customised version of the PHPMailer OAuth class * * @package core * @copyright 2022 Huong Nguyen * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class moodle_phpmailer_oauth extends \PHPMailer\PHPMailer\OAuth { protected function getToken() { return $this->provider->get_accesstoken()->token; } }