Auth: Cannot read property ‘$cookies’ of undefined I faced this problem while developing Nuxt.js authentication middleware.