I have a script that will redirect a user to the login screen when they get a response code of 401 - which means their session has expired within the API.
import
You can try this:
this.$router.push({ name: 'nome-of-location'})