Unable to Logout using Auth0

After implementing the logout function, whenever I attempt to logout, the page refreshes to the home page. Once logout is pressed, it attempts to load my auth0 url but then reloads to the home page and I am unsure as to why.

logout() {
this.$auth.logout({
returnTo: window.location.origin,
})
},

Can anyone provide any assistance please? Thanks in advance.

Hey there!

Isn’t it because of exactly this line?

returnTo: window.location.origin

When implementing it prior in another application, this sends me back to the login page, not the home page. And for some reason I am still logged in… I want to know how to logout

Gotchya! Can you provide us with more context regarding the stack you use? Any links that you use etc? That will be helpful!