Skip to main content

Questions tagged [passport]

Passport is authentication middleware for Node.js. Extremely flexible and modular, Passport can be unobtrusively dropped in to any Express-based web application. A comprehensive set of strategies support authentication using a username and password, Facebook, Twitter, and more. See passportjs.org for more information.

Filter by
Sorted by
Tagged with
4 votes
1 answer
1k views

Implementing Passport authentication with promises

Here is code implementing Passport authentication with a Google Strategy. It uses Mongoose to store and retrieve user data. You might need to be familiar with both of these technologies to review ...
user avatar
2 votes
1 answer
189 views

User authentication using Passport

I'm currently building a Node/Express app using Passport for user authentication and Sequelize for database queries. It's a 'To-do list' app which currently has 3 models: User, List and Task. My back-...
Tomer R's user avatar
  • 21
3 votes
0 answers
1k views

Redirect to previous page using Passport Facebook strategy in Express

Somehow, I couldn't redirect the user back after its authentication. I was using successReturnToOrRedirect property, but it kept sending it back to ...
A A's user avatar
  • 31
4 votes
0 answers
326 views

Passport user authentication

I'm using Passport in Node.js app to authenticate user by email and password (login) and also by token. Email and password are used only when user is logging in. Passport local strategy generates ...
hya's user avatar
  • 141
4 votes
2 answers
2k views

Modularize this node.js express server code for routes and session handlers?

I have express node.js server code using Passport. It receives a user to authenticate it and ...
diegoaguilar's user avatar
5 votes
1 answer
442 views

node.js Passport Wrapper 3

First attempt was done here Second attempt was done here Huge comment at top ...
Loki Astari's user avatar
  • 96.6k
11 votes
1 answer
582 views

node.js Passport Wrapper 2

First attempt was done here: My second attempt (now using jslint to make sure the spacing is correct and have incorporate the majority of the feedback from previous attempt). ...
Loki Astari's user avatar
  • 96.6k
11 votes
1 answer
574 views

node.js passport wrapper

I have started some experiments with node.js. Any comment on style (especially the callbacks) and best practice is appreciated: PassportControl.js ...
Loki Astari's user avatar
  • 96.6k