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: '/' },}