3

I understand the concept of oauth for the most part. I've done quite a bit of research, but I'm having a lot of difficulty understanding how to use oauth to gain access to Gmail. I can't seem to find any concrete documentation for it.

I know there are a lot of node libraries for oauth, which one would you recommend me use? Is there any noob friendly tutorials for using node and oauth?

Just anything in general; I just need somewhere to start so I can understand how to apply oauth with nodejs.

I've used nodejs before, but I can't say I'm an expert in it.

1 Answer 1

4

First get an access token by following the Web Server Applications flow. You can check out node-oauth to accomplish this.

Then you need an IMAP library that supports Google's XOAUTH2 authentication mechanism. Fortunately there's node-imap, that recently added this.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.