Home Posts GitHub Menu

Vue Auth Recipes Duplicate Navigation Error



If you are seeing this it could potentially be caused by one of the auth functions.

Since there are a lot of default redirects, if you are doing some manual redirect they might be getting run twice.

If you are doing something manual, make sure to set the redirect options to arguments to null.

this.$auth
    .login({
        ...
        redirect: null
    })
    .then(() => {
        this.$router.push({
            name: 'user-account'
        });
    });