This url explains how oauth works

https://developers.google.com/identity/protocols/oauth2/web-server



NEED to set the end point for any gmail users here :-


https://console.developers.google.com/apis/credentials/oauthclient/403058189053-odfoe552320ivu76c6uu6nklhepkii5e.apps.googleusercontent.com?authuser=1&orgonly=true&project=analytics-272718&supportedpurview=project



https://developers.google.com/gmail/imap/xoauth2-libraries


DONT USE SERVICE ACCOUNT

instead use


https://console.developers.google.com/apis/credentials?authuser=1&orgonly=true&project=analytics-272718&folder=&supportedpurview=project


the gmail client id









https://www.google.com/webmasters/verification/verification?hl=en&domain=florist-00.co.uk&priorities=vdns&vtype=vdns&failed=true&mesd=ACQ0Nr9VuzfRE1HfFgy-vuF6f59MZ0BstXoRbTbOFouK8LmkAiv77NiBdciu5yxs4FHbdu-M1kF5NPvOSEeEEk5F3sYQtA2bu0p3Oi6ae3xQBWg8ndh3SNQFIAk95WrLuD7uzJv8NH3eX3x7R52tgoxbf6TRUsNCrg