Meteor.js Google Oauth issues

后端 未结 4 2037
北恋
北恋 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:46

    You have to register the redirect URL with Google's APIs Console. Log on to the console and check what redirect URI was set up. Add localhost if necessary

    Update:

    I tried it myself and added

     http://localhost:3000/_oauth/google?close 
    

    in the API console. I added accounts-google and accounts-ui to the Hello World app and added the login button to the page

    
        {{loginButtons}}
        {{> hello}}
    
    

    I agreed to the requested permissions in the pop up and was logged in.

提交回复
热议问题