[SSR] Get error: Meteor.userId can only be invoked in method calls or publications
thearabbit opened this issue · comments
I tried to apply Vue-SSR
, but get the error in store: auth.js
state: {
userId: Meteor.userId(), // On initial load the userId will come from Meteor
email: null,
isEmailVerified: null,
profile: null,
userDetailsLoaded: false,
},
---------------------
Meteor.userId can only be invoked in method calls or publications