Vue
Nuxt.js - Creating an e-Commerce Site with Vue.js

Let's Add Middleware Authentication

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

Middleware is a Nuxt-only option that allows you to run server-side or client-side code before the page loads. Middleware differs from asyncData in that middleware can attach to more than one page. In this video, students will learn how to add middleware authentication to their ecommerce site to verify if a user is properly logged in or not.

 

I finished! On to the next chapter