Using $auth Module’s Redirect in Tandem With $router.push in Nuxt.js

Written by abrar | Published 2020/03/15
Tech Story Tags: vuejs | nuxtjs | frontend-development | authentication | javascript | web-development | programming | nodejs

TLDR Using $router.push in Nuxt.js and invoking a.router.push in subsequent line of code in the same method is redundant. The conundrum began when the lines after the.auth.loginWith method did not execute as intended since the page was redirected to the redirect. URL. The only thing left to do is disabling the redirect case in the. auth option: false will do the job! The.auth object in nuxt.config.js would look like this now:via the TL;DR App

no story

Written by abrar | A Techie in Tokyo
Published by HackerNoon on 2020/03/15