{"version":3,"file":"auth.p8Q0Ko0Q.js","sources":["../../../../middleware/auth.ts"],"sourcesContent":["export default defineNuxtRouteMiddleware((to, from) => {\n const { hasStoredLoginCredentials, isSignedIn } = useUser()\n if (process.client && !isSignedIn() && !hasStoredLoginCredentials()) {\n // This soft cookie is used to ensure that you are redirected\n // on the server side if you are not logged in and are visiting a page with\n // the 'auth' middleware guard\n console.warn(\"No soft cookie found, redirecting to login\", to, from)\n return navigateTo({ path: \"/login\" })\n }\n})\n"],"names":["auth","defineNuxtRouteMiddleware","to","from","hasStoredLoginCredentials","isSignedIn","useUser","navigateTo"],"mappings":"2eAAA,MAAAA,EAAeC,EAA0B,CAACC,EAAIC,IAAS,CACrD,KAAM,CAAE,0BAAAC,EAA2B,WAAAC,CAAW,EAAIC,EAAQ,EAC1D,GAAsB,CAACD,EAAA,GAAgB,CAACD,IAI9B,eAAA,KAAK,6CAA8CF,EAAIC,CAAI,EAC5DI,EAAW,CAAE,KAAM,QAAU,CAAA,CAExC,CAAC"}