We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f07ce9 commit 465d72dCopy full SHA for 465d72d
src/runtime/plugin.ts
@@ -58,7 +58,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
58
59
// 3. Enable the middleware, either globally or as a named `auth` option
60
const { globalAppMiddleware } = useRuntimeConfig().public.auth
61
- if (globalAppMiddleware.isEnabled) {
+ if (globalAppMiddleware === true || globalAppMiddleware.isEnabled) {
62
addRouteMiddleware('auth', authMiddleware, {
63
global: true
64
})
0 commit comments