-
Notifications
You must be signed in to change notification settings - Fork 488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logout without redirect #618
Comments
There’s no way to do this right now. Do you want to send a pr? You can also just call the logout endpoint in an iFrame or something like that |
I'll do the next best thing for now, which is the |
Do you keep track of feature requests anywhere? |
@lorensr Hi, we keep track of feature requests via support tickets |
Hi. I wouldn't mind PR-ing this if you'd guide me how to go about it |
@luisrudge revisiting this feature request. Would it be possible via an http request (without the auth0.js lib) just against the logout endpoint on our auth0 domain? |
I'm actually not sure if that would work. It would certainly end your Auth0 session, but I'm not sure it will clean your cookies.. |
Do you mean the cookies on the auth0 domain? So what you mean by that is when asked for a renewal, it would be possible to retrieve a renewed session? |
that won't happen because the session will be removed from the server when you hit |
Okay. But in theory creating an iframe with the src URL of |
This might work, yeah. |
@andreasvirkus did you get anywhere with this? I'm interested in doing the same. In my case, I'm launching from an Ionic native app (iOS/Android) which launches Safari to logout then goes back to the application. |
@rnwolfe I don't recall how my experiments with the iframes ended up, but looking at our current code we just utilise the |
I would like to be able to call
auth.logout()
and not take the user away from my SPA (likeauth.popup.authorize()
does not navigate away from my app). Is this possible? If yes, I'm not finding the documentationhttps://auth0.github.io/auth0.js/global.html#logout
Related: #474
The text was updated successfully, but these errors were encountered: