diff --git a/frontend/middleware/check-auth.js b/frontend/middleware/check-auth.js index 60f807b9..66f468e6 100644 --- a/frontend/middleware/check-auth.js +++ b/frontend/middleware/check-auth.js @@ -1,3 +1,3 @@ -export default function(context) { - context.store.dispatch('auth/initAuth', context.req) +export default async function(context) { + await context.store.dispatch('auth/initAuth', context.req) }