chris-visser / meteor-vue-admin

A fully functional Meteor + Vue admin system with Meteor account integration.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[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