Saturday, 3 August 2019

How to handle auth in Node server via email/password AND allow OAuth with i.e. google, linkedin.

I'm new to Node/programming and apologies in advance if my verbiage is off.I have a basic grasp of how to set up authorization and authentication with Nodejs. And independently I'm able to set up a sign in with Google.However, If I want to do both, it's unclear how my Users table would look like. With google oauth, I only had to save the googleId to the database. With reg auth, my users table have email and password columns.How should my db table look like if I wanted to let users the options of regular auth or google signin?

Submitted August 03, 2019 at 11:41AM by Hyetigran

No comments:

Post a Comment