Skip to content
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

token not deleted when authorization fails #21

Open
RinaldoB opened this issue Apr 18, 2014 · 2 comments
Open

token not deleted when authorization fails #21

RinaldoB opened this issue Apr 18, 2014 · 2 comments

Comments

@RinaldoB
Copy link

When I press the "Share Notebook" button it fails with: Uploading gist failed: Unauthorized. I previously entered a token.

Looking at the code, then token should be deleted when authorization fails:

    if (true || jqXHR.status == 403) {
        // authentication failed,
        // delete the token so that we prompt again next time
           delete localStorage[token_name];
    }

What's going wrong?

@RinaldoB
Copy link
Author

cleaning cookies from the local browser didn't help. where is the token actually stored?

@minrk
Copy link
Owner

minrk commented Apr 18, 2014

It's in local storage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants