Questions tagged as 'passport'

1
answer

PassportJS + Express with Node.js, req.session.passport Undefined

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...
asked by 21.02.2018 / 05:05
0
answers

Model does not pass JSON to route

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...
asked by 03.11.2017 / 03:11
1
answer

Express middleware Login

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....
asked by 26.07.2017 / 03:33
1
answer

How to use multiple authentication passport in Laravel?

the file auth.php I have the following code 'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'api' => [ 'driver' => 'passport', 'provider' => 'users',...
asked by 15.06.2017 / 18:23