multiguard
v1.0.1
Published
A vue router helper that lets you define multiple guards per vue router config field
Downloads
2
Readme
Very complicated and genius package that allows you to add multiple guard functions to your Vue-Router guards.
Simply pass all functions you want as arguments. Watch the order as they are all middleware.
Installation
npm i multiguard
import multi from 'multiguard';
beforeEnter: multi(checkAuth, redirectBadToken, sendToDashboard);