While authenticating an account you are presented with a warning from Google stating: "This app isn't verified. This app hasn't been verified by Google yet. Only proceed if you know and trust the developer."
Your application needs to verified by Google as per
Alternatively a workaround - How can I whitelist my application in Gmail?