Auth0.js: Logout function

Created on 22 Aug 2017  路  6Comments  路  Source: auth0/auth0.js

Thank you for using Auth0.js! Please read the following before creating a new issue.

  • [ ] Is this a question about Auth0 in general or a support request? Get in touch with us at https://support.auth0.com.
  • [ x ] Is this issue something you can fix? Please send us a pull request! Bug fixes are welcome.

Otherwise, create a new issue with the following information:

  • [ x ] Code snippet or sample project that reproduces the bug
  • [ x ] Screenshots when appropriate
  • [ x ] Auth0.js version
  • [ x ] Browser & OS

Make sure to include as much information as possible for us to understand and reproduce the bug, that way we can fix it as quickly as possible.

Auth0.js version => http://cdn.auth0.com/js/auth0/8.6/auth0.min.js
Browser & OS => Mac Sierra, Windows 10

I can login, work with client, update data, all work fine, when I try to logout show this error with this code:

this.auth0.logout({
      'returnTo': environment.auth0Config.logoutURL,
      'client_id': environment.auth0Config.clientID
});

Error
captura de pantalla 2017-08-22 a la s 10 02 47

Web
captura de pantalla 2017-08-22 a la s 09 46 03

I check the config for the project, check the redirects URLS, and work, for localhost and production, but the logout not working.

My project is in Angular v4, I use the instructions => https://auth0.com/docs/libraries/auth0js/v8

Thanks in advance

Most helpful comment

okey its different inputs =) sorry and thanks !

All 6 comments

What error are you getting? (Click in the "see details for this error)

Oh sorry is this

captura de pantalla 2017-08-22 a la s 10 08 04

I'm talking about this:
image

show this =>

captura de pantalla 2017-08-22 a la s 10 09 56

when I go to the url and check

captura de pantalla 2017-08-22 a la s 10 10 26

Just follow the instructions in that message. You need to add the logout url to your allowed logout urls. 馃帀

okey its different inputs =) sorry and thanks !

Was this page helpful?
0 / 5 - 0 ratings