okta / samples-js-vue

samples-js-vue

Home Page:https://github.com/okta/samples-js-vue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: onAuthRequired to/from are backwards

mattstrayer opened this issue · comments

The onAuthRequired function has the to and from variables referenced backwards. Vue Router middleware conforms to the (to, from next) pattern.
https://router.vuejs.org/guide/advanced/navigation-guards.html#global-guards

const onAuthRequired = async (from, to, next) => {