I have Googled this question for a while but I’m finding it difficult to find a working solution.
I removed autopublish, and could no longer access Meteor.user()
. It returns null
. It works fine when I use autopublish.
Do I need to subscribe to get user data?
ralof
2
Are you logged in? Meteor.user() returns null when there is no current user.
See here how to add account UI and other things you need
1 Like
Yeah I’m definitely logged in. It was working fine until I removed autopublish
.
ralof
4
No, you are not logged in, if you were, Meteor.User() would not return null 
1 Like
Oh no I wasn’t logged in. Do sessions expire when using Facebook login?