From a10e85788b851685de7c658e809f69e7ea2ccf5f Mon Sep 17 00:00:00 2001 From: sideborg Date: Sat, 23 Sep 2023 09:59:15 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20local=20'content/2.nuxt?= =?UTF-8?q?-auth/'=20with=20remote=20'docs/content/'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../3.application-side/4.protecting-pages.md | 3 ++- .../v0.6/3.application-side/4.protecting-pages.md | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/content/2.nuxt-auth/3.application-side/4.protecting-pages.md b/content/2.nuxt-auth/3.application-side/4.protecting-pages.md index 839f27c..fd43656 100644 --- a/content/2.nuxt-auth/3.application-side/4.protecting-pages.md +++ b/content/2.nuxt-auth/3.application-side/4.protecting-pages.md @@ -1,6 +1,7 @@ # Protecting Pages `nuxt-auth` offers different approaches to protect pages: + 1. Global protection: Protects all pages with manual exceptions 2. Local protection: Protects specific pages 3. Custom middleware: Create your own middleware @@ -48,6 +49,7 @@ That's it! Every page of your application will now need authentication for the u ### Disabling the global middleware locally To disable the global middleware on a specific page only, you can use the [`definePageMeta` macro](https://nuxt.com/docs/api/utils/define-page-meta#definepagemeta) to turn `auth` off: + ```vue