# Middleware

The package provides a set of middleware to secure your pages from unauthenticated access:

* [sanctum:auth](https://manchenkoff.gitbook.io/nuxt-auth-sanctum/0.4/usage/middleware/sanctum-auth) - middleware for pages that require an authenticated user
* [sanctum:guest](https://manchenkoff.gitbook.io/nuxt-auth-sanctum/0.4/usage/middleware/sanctum-guest) - middleware for pages that require guest user
* [Global middleware](https://manchenkoff.gitbook.io/nuxt-auth-sanctum/0.4/usage/middleware/global-middleware) - requires authentication for all pages except login and error page
