Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

multiguard

Babazon9MIT1.0.1

A vue router helper that lets you define multiple guards per vue router config field

vue-router, guard

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);