meteor-user-session
meteor-user-session copied to clipboard
Fails when used in publish functions
The code in common.js calls Meteor.userId(), and if that code is called from within a publish function, Meteor will issue this error:
Meteor.userId can only be invoked in method calls. Use this.userId in publish functions.
I have the same issue in the onLogin function.
I'm going to try to fix it and submit a pull request. Hoping the developer is still around : )