Since I want to check if the channel route they enter need PIN code or not, I use router.beforeEach as below:
router.beforeEach((to, from, next) => { if(to