python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
login works even if the password incorrect using passportJs
I am trying to build authentication system for my website , and I am using express to build server , and passport local strategy for authentication ,
let passport = require("passport");
let...

Null Array
Votes: 0
Answers: 2
ExpressJS - PassportJS LocalStrategy: Get current logged in user
I have an expressjs server where I'm using the Passport Local strategy.
But something isn't working probably
My Login Route in login.js File
router.post('/login', passport.authenticate('local', {
...
DevChris
Votes: 0
Answers: 0
Returning a JSON response for passport-local when password or name is not correct
I am working on passport and passport-local for authentication and the problem I have now is that I want to return a JSON response to the frontend when the password or username is wrong but i keep get...

Nazehs
Votes: 0
Answers: 0
NestJs Authentication Tutorial always returns 401 Unauthorized after implementing local strategy (When using browser)
What I want to do is a simple authentication using passport as this tutorial suggests: https://docs.nestjs.com/techniques/authentication
I followed this tutorial all along and works when i use Insomni...

Henrique Ramos
Votes: 0
Answers: 0