Quantcast
Channel: User zarpio - Stack Overflow
Viewing all articles
Browse latest Browse all 39

NuxtJS auth redirect after logout to various paths, if needed

$
0
0

Did Google and read the documentation but no solution found yet, please suggest how to log out the user to different paths if needed.

My scenario/issue

  • If a user is verified and logout, should be redirected to{domain}/login
  • If a user updates phone number should be logged outand redirected to {domain}/verify to re-verify.

Tried (not working)

this.$auth.logout()this.$router.push('verify')

I am always being redirected to {domain}/login :-(

Tried > still not workingDisabled redirect for logout in nuxt.config.js as follows.

auth: {  redirect: {    login: '/signin',    logout: false,    home: '/'  },}

Viewing all articles
Browse latest Browse all 39

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>