splendido / meteor-accounts-emails-field

A Meteor package to keep user.email up to date with email addresses used for 3rd-party account services
19 stars 9 forks source link

Support for accounts-microsoft #49

Open Bandit opened 8 years ago

Bandit commented 8 years ago

I get a Exception in onLogin callback: TypeError: Object [object Object] has no method 'map' at getEmailsFromService (packages/splendido_accounts-emails-field.js:115:16)

This is what the Microsoft service roughly looks like in Mongo:

"services": {
        "microsoft": {
            ...
            "emails": {
                "preferred": "example@email.com",
                "account": "example@email.com",
                "personal": null,
                "business": null
            },
            ...
        }
}

I'm not sure how to fix it myself and make a pull request unfortunately (how do I add a forked version of this package to my Meteor app?)