ianmartorell / meteor-accounts-ui-bootstrap-3

accounts-ui package with Bootstrap 3 and localization support
150 stars 109 forks source link

Does accountsUIBootstrap3.setCustomSignupOptions work with 3rd party services like google? #179

Open petr24 opened 8 years ago

petr24 commented 8 years ago

Hey,

Been trying to find a way to pass a url param to the server to be accessed at Accounts.onCreateUser, but no luck with anything.

I set google oauth on the client

//Config google oauth permission request
Accounts.ui.config({
    requestPermissions: {
        google:['https://www.google.com/m8/feeds', 'email']
    },
    requestOfflineToken: {
        google: true
    },
    forceApprovalPrompt: {
        google: true
    }
});

accountsUIBootstrap3.setCustomSignupOptions = function() {
    return {
        testing: "testString" // Or whatever
    }
}

Then on the server I console log the options and not getting the testing field I set on the client. Am I doing something wrong? Or do custom fields not work with oauth services? Thanks.

    Accounts.onCreateUser(function(options, user) {
        console.log('SERVER OTPIONS ', options);
        console.log('SeRVER USER ', user);
   });