Hi guys! I tried to implement twitter strategy using PassportJS alongside local strategy for my ExpressJS application. The local strategy works fine. However, for twitter strategy, it doesn't move from this page (image below) when calling the callback URL. Twitter actually called the callback route (I tried replacing passport.authenticate() with res.json()) but somehow when I put passport.authenticate() it got stuck. What could be the problem?
Hi guys! I tried to implement twitter strategy using PassportJS alongside local strategy for my ExpressJS application. The local strategy works fine. However, for twitter strategy, it doesn't move from this page (image below) when calling the callback URL. Twitter actually called the callback route (I tried replacing passport.authenticate() with res.json()) but somehow when I put passport.authenticate() it got stuck. What could be the problem?
server
routes
passport config