Twitter signin doesn't work



I’ve implemented Twitter Signin with passportjs. When I click the link to authenticate with oAuth, I’m redirected to Then, I click on “connection” button. Finally, instead of being redirected to my app, I’m redirected to, and I never go back to my app.
My app seems to be correctly configured, so I don’t understand what’s happening. Please help me.