Hi,
I am developing a web application with Meteor & React and I am currently configuring Google login. Now I’m using Meteor.loginWithGoogle(), but this function doesn’t seem to be doing much:
https://www.novaterra.earth/signup
In the link above, the pop-up window does work as expected, yet once you sign into your google account, nothing else happens. What I’ve been thinking is that instead of using Meteor.loginWithGoogle(), I should first use a function that creates a user account like Accounts.createUser(), yet I haven’t had much success in doing this. Have any of you created social logins in the past with Meteor and could reproduce the steps you did to get there?
Here is my current code:
Server/Main.js:
ServiceConfiguration.configurations.remove({
service: "google"
});
ServiceConfiguration.configurations.insert({
service: "google",
clientId: "xxx",
secret: "xxx"
});
Signup.js (client):
googleLogin() {
Meteor.loginWithGoogle({
}, function (err) {
console.log('google error', err.reason);
});
}
<div onClick={() => this.googleLogin()} className="signup__loginWithGoog
le"><FontAwesomeIcon icon={['fab', 'google-plus-g']} className{`signup__
loginWithGoogleIcon`} /><div className="signup__loginWithGoogleText">Sign
in With Google</div></div>
Sorry if this is a stupid question; I’m just really stuck ;(
Oliver