Auth0.js: Can't logout

Created on 7 Dec 2018  路  3Comments  路  Source: auth0/auth0.js

I have posted an issue in the demo apps section, but decided this was the more appropriate place.

  • [ ] Code snippet or sample project that reproduces the bug

Steps:

  • install and run Login app, click login
  • show dialog, fill in credentials -> logged in
  • click logout -> logged out
  • click login -> logged in straight away

I expect to see the login dialog after logging out, but there seems to be no way to ever get the login dialog back (clearing storage/cookies etc). What is going on here?

Original issue: https://github.com/auth0-samples/auth0-javascript-samples/issues/55

  • [ ] Auth0.js version
    Seen with auth0-js 9.6.1 and 9.8.2
  • [ ] Browser & OS
    latest Safari & Chrome on Mac

Most helpful comment

If this is not a bug, what use case does this support? From a user perspective (and from a programmer's too, frankly) this makes no sense. When I click logout, I expect to be logged out, right? What state am I in when I click logout?

Edit: it looks like I am not alone here and it is a bug: https://community.auth0.com/t/log-out-now-unusually-auto-logging-back-in/9894

It looks like it's a SSO feature acting up, but to have it behave like this out of the box is very strange. I don't have any SSO requirement or feature turned on.

All 3 comments

Hi, this doesn't look like a bug in the SDK. Please reach out to our amazing support team at https://support.auth0.com so they can better assist you with your scenario.

If this is not a bug, what use case does this support? From a user perspective (and from a programmer's too, frankly) this makes no sense. When I click logout, I expect to be logged out, right? What state am I in when I click logout?

Edit: it looks like I am not alone here and it is a bug: https://community.auth0.com/t/log-out-now-unusually-auto-logging-back-in/9894

It looks like it's a SSO feature acting up, but to have it behave like this out of the box is very strange. I don't have any SSO requirement or feature turned on.

Again, this is not a bug. If you call the logout method in auth0js, you鈥檒l be logged out. The sample is not doing that. Let鈥檚 keep the conversation in in the sample鈥檚 repo.

Was this page helpful?
0 / 5 - 0 ratings