What is the best practice in my situation.
I have angular app and express back-end API with passport.js to authorize.
for example, to connect twitter i have GET on "/connect/twitter/" in my express.js back-end. It proceeds with
app.get('/connect/twitter', passport.authorize('twitter-authz'));
in angular app when i click this link request doesn't work - it simply updates browser address bar with this url.
how can I isolate URLs for authentication?