Meteor.js Google Oauth issues

后端 未结 4 2029
北恋
北恋 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-05 14:22

    I have the same problem on https://gotlog.in When I put https://gotlog.in/_oauth/google?close as the call back URL it get worth :

    1. That’s an error. Error: invalid_client no application name

    And whe I put the good call back (https://gotlog.in/_oauth/google) as said in the setup popup I get the same :

    1. That’s an error. Error: redirect_uri_mismatch The redirect URI in the request: https://gotlog.in/_oauth/google?close did not match a registered redirect URI.

    My root URL is setup and valid, but I have no userData published. But the documantation says : "By default, the current user's username, emails and profile are published to the client."

    Edit: found the solution here : https://github.com/meteor/meteor/issues/2717

    I was missing the consent screen information in the api console. And yes the callback URL has to have the '?close' at the end. Viva Meteor =)

提交回复
热议问题