meteor-accounts-ui-bootstrap-3 icon indicating copy to clipboard operation
meteor-accounts-ui-bootstrap-3 copied to clipboard

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

Open petr24 opened this issue 10 years ago • 0 comments

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);
   });

petr24 avatar Nov 23 '15 04:11 petr24