Saturday, 13 May 2017

passport local bad request with middleware controllers and helpers

i have problem with passport-local. see it?

passport.use(new localStrategy(helpPassport.passportLocal)); app.use(passport.initialize());

helpPassport is helper for passport. i use authenticate for middleware ex:

router.post('/signin', passport.authenticate('local', {session : false}), controll.signIn);

controll sign in just for send token jsonwebtoken.

why this token bad request?



via Dyan Kastutara

No comments:

Post a Comment