Search code examples
meteor

Meteor service-configuration package collection


When we execute the following code where does configuration get stored. In other words what is the collection name where configuration gets stored.

ServiceConfiguration.configurations.upsert(
    { service: "weibo" },
    {
        $set: {
            clientId: "1292962797",
            loginStyle: "popup",
            secret: "75a730b58f5691de5522789070c319bc"
        }
    }
);

Is there a way to change to name of collection where Service Configurations are stored.


Solution

  • The name of the collection is :

    "meteor_accounts_loginServiceConfiguration"
    

    You can get this name using :

    ServiceConfiguration.configurations._name