diff --git a/lib/templates/auth.plugin.js b/lib/templates/auth.plugin.js index 2a8933c0b..e6c1b3aae 100644 --- a/lib/templates/auth.plugin.js +++ b/lib/templates/auth.plugin.js @@ -8,10 +8,8 @@ export default async function (context, inject) { }) // Backward compability for Nuxt <= RC.11 - if (!context.store.app) { - context.store.app = { - context - } + if (!context.store.app.context) { + context.store.app.context = context } // Fetch initial state