Tuesday 27 November 2018

Do I need to use authentication middleware to store oauth user information into my database?

New to node and middleware here. I'm working on an app that uses slack oauth 2.0 to login and the app needs to display their slack avatar and other details. Messages in the database also have a reference to user_id.So far I'm already able to return a JSON response containing the slack user's info when signing in, so I'm just wondering do I need to create or utilize an authentication middleware like `passport.js` for what I described above? I don't understand the why yet, I just see that there are examples of this: https://www.youtube.com/watch?v=KRCh6mSSsb8

Submitted November 27, 2018 at 06:21PM by littleQT

No comments:

Post a Comment