Search code examples
authenticationmeteoraccountsmeteorite

Trying to add another service to the meteor accounts package


I've found this on github that shows how to add github login to the accounts. https://github.com/Jabbslad/accounts-github

Instead of installing the package with "mrt add accounts-github", I'm downloading the sources, and trying to make them work with a simple app. The goal of this is to make a few changes to the code to understand how it works and finally make my own extension to accounts.

But I get errors "Cannot read property 'github' of undefined at app/accounts-github/github_common.js:1:36".

Thx for your help.


Solution

  • So the problem was the git for accounts-github was not updated with the latest evolutions from meteor. So I replaced "Meteor.accounts" with "Accounts" in all files and now it works.