Using $auth module’s redirect in tandem with $router.push in Nuxt.js

Abrar Shariar
Console.log()
Published in
2 min readMar 12, 2020

Recently I came across the issue of using the auth module in Nuxt.js and invoking a $router.push in subsequent line of code in the same method. The conundrum began when the lines after the auth.loginWith method did not execute as intended since the page was redirected to the redirect URI.

It has been only a week in the Vue.js land, so I suppose this issue is something faced by many newbies.

Abrar Shariar
Console.log()

Techie | Engineer | Coder