I am trying to redirect back to the page when I am redirected to log in. I am using Passport and connect-ensure-login, and the login works, however, it gets annoying having to re-click the link (if …
Tag: passport.js
Azure AD authentication failed using idToken or accessToken. Which one should I use?
In the azure active directory documentation it states: idToken: id_tokens are sent to the client application as part of an OpenID Connect flow. They can be sent along side or instead of an access …
Mongoose schema Cannot read property ‘password’ of undefined
I was trying out passport local authentication by following a tutorial. Everything seems fine but I’m getting this error when I make a request using Postman: [nodemon] 1.18.11 [nodemon] to restart at …
Loopback passport-facebook for multiple user models
I’m using passport to authenticate users for my application using Facebook. In my application, I have 2 different users: customers and professionals (transitioning to “experts”). I followed the Loopback docs to implement the loopback-component-passport package and passport-facebook and have it working for my customers. Because I use custom User models, I followed this SO Post […]
React Node Unable to pass cookie to the browser (crocs error)
For some reason I am unable to store cookie in my browser. This is the first time I am working with React And NodeJS My React application is working on localhost:3000 and NodeJS application on localhost:8080 The Git repository for the same happens to be this So, I am successfully able to login, store the credentials in DB and probably
NodeJS doesn’t like passport + sequelize logins
I’m going crazy with nodejs. I’m trying to realize the backend for a simple user management webapp powered by NodeJS, using Passport-Local and Sequelize libraries. Right now I just designed the user …