to obtain the refresh token, which We are going to use within the transporter item in Nodemailer, we must Visit the OAuth2 Playground. We authorized this URI for this particular reason at an previously stage.
Check https://lewysespy176088.madmouseblog.com/10946148/how-node-js-web-server-can-save-you-time-stress-and-money