I am new with this framework and I was trying to do a 'Registration and Login' test with PassportJS + Express + Node.js + MongoDB and Redis. The registry works perfectly and apparently the login also, the problem is that when logging in I want t...
My model now works but the JSON does not pass well to the router
Model:
const USER = module.exports = dynamoose.model('Usuarios', USER_SCHEMA);
module.exports.getUserByUsername = function (user, callback) {
var docClient = new AWS.Dynamo...
I would like to know how I can make the user after login can not return to the login page?
I am using Passport.js I can register and login,
What I want to achieve is that if you are authenticated and return to login, redirect to / profile....