Open Nezo96 opened 1 year ago
Okay so idk if this is bug or i am dumb but when i add auth to nuxt.config.ts it seems to not detecting it. Idk why.
my nuxt.config.ts
export default defineNuxtConfig({ modules: ["@sidebase/nuxt-auth"], css: ["~/assets/css/main.css"], postcss: { plugins: { tailwindcss: {}, autoprefixer: {}, }, }, runtimeConfig: { authSecret: "adsadawdawdawdawdadsadasd", }, auth: { globalAppMiddleware: true, }, });
but if i use local middleware it works pefectly
definePageMeta({ middleware: "auth", auth: { unauthenticatedOnly: true, navigateAuthenticatedTo: "/user-profile/getting_up", }, });
It looks like you are trying to use this in Nuxt 3.
The docs probably need to be more clear, but this module is for Nuxt 2 only
Okay so idk if this is bug or i am dumb but when i add auth to nuxt.config.ts it seems to not detecting it. Idk why.
my nuxt.config.ts
but if i use local middleware it works pefectly