This was implemented in v8.0 as part of our work under this request: https://requests.whmcs.com/idea/add-oauth-support-for-mail-for-gsuite-users
Documentation: https://docs.whmcs.com/Mail_Providers