I am trying to connect an app to a remote server with DDP connect. Everything works fine, loginWithPassword included. However, the Meteor.loginWith[provider] methods fail, even though I updated the Accounts.connection to the new one. Anyone ever encountered this problem?
Most of the loginWith methods depend on a particular domain name the service is being enabled for (Facebook, Google, …). If you DDP.connect from a URL that does not match the pattern, the redirect will not work correctly. That is what I have found out anyways.
Makes sense. However, Cordova apps with the --mobile-server flag manage to handle the auth even though a remote server is used. Isn’t there a workaround to achieve the same thing out of Cordova?
I think this enters the murky and magic territory of DDP.connect. There are several other threads on this forum and some issues filed on github
Did you try setting ROOT_URL in your env? If that doesn’t work… This problem is totally exacerbated by Cordova, though. Make sure you set your --server and/or --mobile-server flags when you build.