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