auth0/auth0-vue

Logout ReturnTo not working when I am using a specific port

purejgleason opened this issue · 3 comments

Describe the problem

When running using Vite and SSL on port 8080

I use the following...

const {isAuthenticated, idTokenClaims, loginWithRedirect, isLoading, logout} = auth0.useAuth0();

const onLogout = ()=>{
  logout({
    returnTo: window.location.origin
  })
}

But the url ends up being https://auth.purepm.dev/v2/logout?isTrusted=true&client_id=...&auth0Client=...=

Everything works fine for login redirect.

What was the expected behavior?

Redirect back to https://localhost:8080

Reproduction

An example is available here (https://github.com/purejgleason/example-vue-vite)

Environment

All of my dependencies are using the latest version.

I hardcoded as well to confirm it wasn't an empty object same response...

logout({
    client_id: "...",
    returnTo: "https://localhost:8000"
})

But it still goes back to https://localhost

NM Typo somewhere else