Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Nuxt: Nuxt auth not redirecting after logout

stack overflow url: https://stackoverflow.com/questions/67348504/nuxt-auth-not-redirecting-after-logout

export default {
    methods:  {
        async logout () { 
            await this.$auth.logout() 
            this.$router.push('login');
        }
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Nuxt #auth #redirecting #logout
ADD COMMENT
Topic
Name
3+5 =