The Oauth package is just for that. If you want to use it to get people credentials
There are two options:
1) Change the source of the google and accounts-google packages to remove the parts you enter. There are no documents for this. I'm afraid itβs better to understand that these are inline comments.
2) Use a different atmosphere package to combine google accounts with an existing login. Thus, they are already logged in, but can use Meteor.logInWithGoogle() to log in to Google, and this is combined with an existing account. This way they do not need to log in with Google, but you can store the OAuth token. For this you can use the bozhao:link-accounts package or the mikael:accounts-merge package:
// ON THE CLIENT: Meteor.signInWithGoogle ({}, function (error, mergedUserId) { // mergedUsers is set if a merge occured if (mergedUserId) { console.log(mergedUserId, 'merged with', Meteor.userId()); } });
You will then find the google OAuth token data in services.google in the existing Meteor.user() document.
source share