Refresh tokens may stop working after they are granted, either because: The application has a status of 'Testing' and the consent screen is configured for an external user type, causing the token to expire in 7 days With reference to Github page: github.com/googleapis/google-api-nodejs-client#readme
@yoursTRULY When i try to publish app, it says Verification not required. but still i'm getting the app not verified warning. What's the procedure to get a token that will not expire?
@@cumpaMira .. I think I have solved it,.. to prevent this,.. go to ur oauth consent screen and change the status from testing to in production by pressing on PUBLISH
No wonder why TH-cam is considered the best university nowadays because there are so many great teachers here, and this channel is a good example. The explanation is very clean and easy to understand. What a great video.
Error 403: access_denied The developer hasn't given you access to this app fix: Solution: 1. Go to your developer console. 2. Go to OAuth consent screen. 3. Go to +Add users, under test users. 4. Add the users for the test (even the owner email address if not working without it)
hey man. Tks for this. It's save me in my work. We used a web system with google cloud function send mail for clients, but, because new polices of google, are necessary Oauth, and break send mails in my site. Thanks for shared your knowledge. Persons equal you, make a better world. sorry for my english.
Thanks you very much, you save my day :D I forget to add client id and client secret before generate refresh token. Every documents absolute do not mention this step, so againt thanks you
Refresh tokens may stop working after they are granted, either because: The application has a status of 'Testing' and the consent screen is configured for an external user type, causing the token to expire in 7 days
@@mafiacodes Will publishing the app for verification make it stop working for now?? I have it being used for a client's website. Thanks for the video btw.
showing error access denied while on oauth playground authorization and if added that email in test all work well but in nodemailer showing error of wrong username and password but all my credentials are right
Fantastic job.. voice is so clear.... do Paterons get access to the code you use on your youtubes? That would add even more value... Thank you for sharing you knowledge.
For the lads out there that had the error: 'error self signed certificate in certificate chain', its probably your anti virus, either turn it off or to combat this just add the code in your transport: auth: {your auth credentials}, tls : { rejectUnauthorized: false }
My token keeps expiring after a couple days. I thought the refresh token was to prevent that? How do I get around this? I should also note that I did specify my app's client ID and client secret exactly like you did at 4:55.
Thank you very much, a query please, how would it be done in the case of a corporate email (with your own domain) to send emails with nodemailer with google workspace?
I don't know if there are any but u can use it like as if ur using gmail on the app, if u want to send marketing or transactional emails then I recommend using a mail service, have a look at this video: th-cam.com/video/qFDgH6dHRA4/w-d-xo.html
i love this video but in getting error while authorize an api any one help me please !! Authorization Error Error 403: access_denied The developer hasn’t given you access to this app. It’s currently being tested and it hasn’t been verified by Google. If you think you should have access, contact the developer
Refresh tokens may stop working after they are granted, either because:
The application has a status of 'Testing' and the consent screen is configured for an external user type, causing the token to expire in 7 days
With reference to Github page: github.com/googleapis/google-api-nodejs-client#readme
I came back for this reason, thank you
@yoursTRULY When i try to publish app, it says Verification not required. but still i'm getting the app not verified warning. What's the procedure to get a token that will not expire?
@@ashwinr001 have you solved the problem?
@@cumpaMira .. I think I have solved it,.. to prevent this,.. go to ur oauth consent screen and change the status from testing to in production by pressing on PUBLISH
@@samudramitra4900 did google verify your app because production status require verificcation
These type of videos are rare to find on the internet, focuses on real issue.
Glad you liked it
For anyone who receives 403 at 6:00 has to add gmail account to test users at project's OAuth consent screen.
mee too
Hero ♥
i was searching for this in the whole comments'
Thanks bro.
Literally i spent 8+ hours on this issue, finally i got solution because of you... Thank You
No wonder why TH-cam is considered the best university nowadays because there are so many great teachers here, and this channel is a good example. The explanation is very clean and easy to understand. What a great video.
Happy to help!
Spent many hours trying to navigate the google oauth setups and using ai, all to no avail. This is first explanation that worked! Many thanks!!!
Those who are getting authorization error, add your email address in test users section then it will work as it should.
You saved my ass few hours of time :) Thank youuu
You good sir are a saint! Thank you!
Thank you❤️
where is that section?
Oauth consent section -> add test user
Inside google developer console
This video is my life savior. I tried numerous methods but only this one works. Thank you so much!!
Error 403: access_denied The developer hasn't given you access to this app fix:
Solution:
1. Go to your developer console.
2. Go to OAuth consent screen.
3. Go to +Add users, under test users.
4. Add the users for the test (even the owner email address if not working without it)
I am facing same error with my login. What to. Please let me know???????
I ran into the same problem. Thank you so much
Thanks for the tip. Really help through this error
Thanks a lot. Really help through this error.
@Pazzo_Fredus. Thanks for the info, that helped me a lot! :)
You have no idea how helpful this tutorial is for me. Thanks a lot.
This is an extremely detailed and well thought out video, well done man! Made it super easy to think about how to implement this into my website
Who is here after google removed the less secure option on March 30th 2022?
I can't tell you that how much this video helped me. Thanks a lot. Keep it up!
Many many thanks.... Amazingly clear voice.... This coming from a Physics teacher who thinks he is very articulate himself.
I love it when a video like this saves me from jumping off a cliff!
Kudos for such a great tutorial. Very well explained, every minute detail covered. It worked in one-go.
;) dude, tell people to use environment variables in your tutorials, some people code without really thinking about it, thanks for the video
Yeah I agree too
Well yes, in my nodejs auth jwt series, I made that production ready, so we hv used env variables
thanks a lot for the detailed step by step tutorial, this has helped a lot
Thanks, man, this was well explained. You redefined "Do it yourself"
Thank you friend you saved me hours and even days of googling and frustration 👍 great job
hey man. Tks for this. It's save me in my work.
We used a web system with google cloud function send mail for clients, but, because new polices of google, are necessary Oauth, and break send mails in my site.
Thanks for shared your knowledge.
Persons equal you, make a better world.
sorry for my english.
Worked like a charm! This is a great video on forwarding emails using Nodemailer through a gmail account! You covered everything
Thanks bro 😎
Thanks again for your support 😊
@@mafiacodes you literally saved me hours! Thank you!
Best video everrrr!!! It worked like a charm! Thanks very, very much bro.
Great content man.Your videos are well detailed and easy to understand👏👏👏
Thanks man! Have struggled with this for hours.
Thanks you very much, you save my day :D I forget to add client id and client secret before generate refresh token. Every documents absolute do not mention this step, so againt thanks you
Subscribe like share
This video was super helpful. Everything worked as expected. Thank you very much.
Awsome, congratulations, I was having problems to send email using nodemail, but this tutorial solved my problem, VERY USEFULL -THANKS ;-)
Glad to hear that
Refresh tokens may stop working after they are granted, either because:
The application has a status of 'Testing' and the consent screen is configured for an external user type, causing the token to expire in 7 days
how to solve this issue ????
Publish ur application for verification
@@mafiacodes Will publishing the app for verification make it stop working for now?? I have it being used for a client's website. Thanks for the video btw.
@@mafiacodes How to do this?
@@mafiacodes sir how much time it will take to authorise?
Thank you so much ! , you made it so easy for me ! Earned a new Subscriber
Do I need to generate access token & refresh toked every time manually when it gets expired?
If the app is in production mode, will the refresh token stop working, or will it work indefinitely?
This is awesome! Thank you for making this!
Subscribe like share
The problem is the token expire after some time and i need to repeat the process again to have nez token
can the from email be replaced with client email and to is our email, so it's not us who sends but the money client sends to us?
Very helpful, great job bro ❤❤❤
good tutorial, helpful in 2024 for a small project
Thanks, man! it worked very well, you made a really good job!
Awesome video with all needed steps. Thanks a lot , keep it up !!
showing error access denied while on oauth playground authorization and if added that email in test all work well but in nodemailer showing error of wrong username and password but all my credentials are right
Hey man thank you for ure job, very clear and helpful!
Glad to help!
Thx a lot, great tutorial it works perfectly ! ♥ greetings from Argentina !
Aguante Argentina vieja! No me importa nada
@@danpenia219 atr o no papu ? We
Man.. this tutorial helped me alot.
Thanks a fortune! I am finally out of the woods. This helped me a great deal.
Great presentation. 👏🏻
Wonderful work... very handy way to send custom mails..
Fantastic job.. voice is so clear.... do Paterons get access to the code you use on your youtubes? That would add even more value... Thank you for sharing you knowledge.
Thank you, my code is all public on GitHub, if someone really likes and wants to support - anyone (even you 😅) can support me on PayPal or patreon.
Thank you so much for helping me out.
For the lads out there that had the error: 'error self signed certificate in certificate chain', its probably your anti virus, either turn it off or to combat this just add the code in your transport:
auth: {your auth credentials},
tls : { rejectUnauthorized: false }
This is a underrated comment! It worked, thanks🤠
Thanks so much for the great tutorial!
Great tutorial! Thanks for the video.
My token keeps expiring after a couple days. I thought the refresh token was to prevent that? How do I get around this? I should also note that I did specify my app's client ID and client secret exactly like you did at 4:55.
Same I got a token revoked error after 7 days
@@vigneshchandrasekhar7387 Looks like something more than likely changed after video was made.
Awesome explanation and good replier for any kind of issue related to the video
Thank you very much, a query please, how would it be done in the case of a corporate email (with your own domain) to send emails with nodemailer with google workspace?
much needed thanks a lot bro!
Happy to help
should the client id, client secret and refresh token be env variables?
Thanks a lot, man! You helped me a lot!
Awesome tutorial man, I appreciate videos like this that show exaclty what to do!
I do have a question, is there a limit to send emails in this way?
I don't know if there are any but u can use it like as if ur using gmail on the app, if u want to send marketing or transactional emails then I recommend using a mail service, have a look at this video: th-cam.com/video/qFDgH6dHRA4/w-d-xo.html
@@mafiacodes Sweet, thanks again for your help
Subscribe like share
It works! Amazing! Thank you! Awesome tutorial!
This was excellent. Great job. Thank you.
If it gives you a 403 on the OAuth Playground, could try to click publish OAuth Consent screen. Fixed my issue.
Awesome, I was looking for this
Thanks for making this video love from developers India
Thank you! Saved my time!
Thank you so much! This was exactly what I needed.
Subscribe like share
Why do we need this, can you tell the application of it.
thanks dude, you are a genius. You helped me a lot
Subscribe like share
Awesome thank you bro
Hi, thanks for this tutorial, but this seems not to work in production environment, please do you have any idea how to work around it
I got stuck at the step of sign in, it says the app isn't verified and I do NOT see the "Advanced" option there.
Thank you so much. I did with no error
thank you so much bro very easy to understand and works well
Add your emaid id in test users section of OAuth Consent Screen so that it will give you permission to open
Thanks alot man, I was stucked
Great tutorial bro
Awesome tutorial. Thanks..
thank you man, this was really helpful
Very helpful video. Thank you so much for helping
Thank you so much. It worked in one go!!!
whoever has problems, just go to
OAuth consent screen, then add an email for test user.
ready, then just authorize the process.
Thanks a bunch for the detailed video
This works perfectly! Thanks......
i love this video but in getting error while authorize an api any one help me please !!
Authorization Error
Error 403: access_denied
The developer hasn’t given you access to this app. It’s currently being tested and it hasn’t been verified by Google. If you think you should have access, contact the developer
You try going to the OAuth screen menu in google cloud and hit publish.
Go to developer console and inside the oauth consent add in a test user. And ur good to go.
@@mafiacodes Thank You good catch
Thank You good catch
ITS REALLY WORKED LOL THANK YOU DUDE
awesome work keep up with the hard work thanks for the video it helped a lot
Thanks, this helped a lot
Thanks for tutorial. Which theme did you use?
snazzy operator
@@mafiacodes thanks
Thanks bro, made my day
great job. but in my redirect url there is no the advanced option for me as am blocked with access denied! how can get it? could you help me please?
Thank you so much, you save me 👏🏼👏🏼👏🏼👏🏼👏🏼👏🏼👏🏼👏🏼👏🏼👏🏼
Thank you very much, it was trully explained very well :)
Glad u like it
Very nice video, thanks much friend :)
What is the using of refresh token in order to access the gmail API ? Sorry, I just try this OAuth 2.0 today.......
Thank youuuuu so much .. it helps me a lot 🌸🌸😍
Can you help me with the steps to read a email. I want to extract the subject of the mail present in inox. Please help
Thanks It Worked !!! Subscribed
Thank You so much. It helped me a lot
Thank you so much for your clean explication.
So much help! Thank you for this :>
good job !! you are awesome
Worked! Thank you very much! keep posting.. how did you add those smileys in vscode?
Your video helped me alot! could you make one for interacting with google sheets?
thank you this was perfect 💯