Hi,
I am new in meteor. I am using accounts-google to provide “login with google”.
For this I have used accounts-google package from atmoshpherjs.com . This is code
I have installed service-configuration package also
Server/main.js
Meteor.startup(() => {
ServiceConfiguration.configurations.remove({
service: 'google'
})
ServiceConfiguration.configurations.insert({
service: 'google',
clientId: '123456789012-asdfhjklpoiuytrew',
secret: 'xxxxxxxxxxxxxxxxxxxxx'
})
})
onclicking the google login button
client/main.js
Meteor.loginWithGoogle({
requestPermissions: ['email']
}, function(error) {
if (error) {
console.log(error); //If there is any error, will get error here
}else{
console.log("google data ",Meteor.user().services.google);
}
})
this code is working fine on Desktop but it is not working on android phone
"Service is not configured " error is generating
Please Correct me where I am wrong