HELP cakephp 4 settings for new app password as less secure apps is disabled by google

Gmail will disable less secure apps on may 30 ? so the app password is to be used but how
In the settings i replace app password with new app password and it doesnt work so how does this work?
‘gmail3’ => [

         'host' => 'ssl://smtp.gmail.com',
        'port' => 465,
        'timeout' => 30,
        'username'=>'jagguy999@gmail.com',
      
        'password'=>' xxxxxxr',//app password 16 digit
    
     
          'client' => null,
        'className' => 'Smtp',
        'context' => [
          'ssl' => [
          'verify_peer' => false,
          'verify_peer_name' => false,
             'allow_self_signed' => true
     ]

SMTP server did not accept the password.???