Meteor.js Google Oauth issues

后端 未结 4 2030
北恋
北恋 2021-02-05 13:48

I am trying to setup my Meteor app to use Google logins, Here is my setup in the /server/config.js file

Accounts.loginServiceConfiguration.remove({
service: \"go         


        
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-05 14:22

    I'm using Nitrous.io since I am developing on Windows. This article explains why google sees the wrong URI.

    https://github.com/shoebappa/vagrant-meteor-windows/issues/9

    Basically you need to launch meteor with a modified ROOT_URL so that it doesn't start with localhost.

    Replace localhost.meteor.com with the URL that meteor is actually running at. ROOT_URL=http://localhost.meteor.com meteor

提交回复
热议问题