TLDR; I have this exact problem
I have setup custom domain on heroku for my app.
Usually user visits my domain www.foo.com and clicks “Sign in with Google”
- Google authenticates and calls back to www.foo.com/_oauth/google?close
- The popup closes and the user is now authenticated on www.foo.com.
As mentioned in the answer from above link, I tried to set ROOT_URL with
Meteor.absoluteUrl('http://www.foo.com'); on server’s startup method but still no luck!
Any help? Thanks in Advance.