Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google oauth 2.0 API password change Username and Password not accepted

I have a form using nodemailer, xoauth2 with google APi oauth2, I updated the password last week and since then my app hasn't worked and I get:

'535-5.7.8 Username and Password not accepted. Learn more at\n535 5.7.8

I've tried deleting the app and creating a new one, but its doesnt seem to pick up the new changed password. Any suggestions to how to fix this? I have allowed less secure apps, and display unlock captcha.

like image 748
Graeme Paul Avatar asked Feb 11 '17 09:02

Graeme Paul


1 Answers

I solved this by updating to latest version of Nodemailer, and remove xoauth2 module as Nodemailer 3 has better Oauth 2 support. Going on Google Oauth 2.0 playground I able to get correct access and refresh tokens.

like image 194
Graeme Paul Avatar answered Oct 20 '22 15:10

Graeme Paul