Nightlife Coordination App - Issue in binding social accounts with local account

I’am very close to finish my Nightlife Coordination App. But I think that this would be great if I can implement possibility of connection social accounts to local account. This case is included in passport documentation. But requests to route specified in documentation:

  passport.authorize('twitter-authz', { failureRedirect: '/account' })

can be done only by redirection with <a href='/connect/twitter'>, XMLHttpRequest is not possible due to CORS error (see example).

And this is a problem, I can’t send auth token using simple redirection so server can’t decode token and get local user info and so can’t add updated user data (with social account data) to database…

More about problem in my stackoverflow question.

Source code

Http address

PS. Sorry for bad english, I will appreciate any help!