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

Auth.assertValidToken: always remove old token when force == true. #354

Merged
merged 1 commit into from
Sep 29, 2017

Conversation

tcard
Copy link
Contributor

@tcard tcard commented Sep 29, 2017

We were not returning it but also not removing it, which caused the
subsequent call to requestToken to still use it instead of the key.

Fixes #350.

We were not returning it but also not removing it, which caused the
subsequent call to requestToken to still use it instead of the key.

Fixes #350.
@tcard tcard requested a review from SimonWoolf September 29, 2017 10:44
@SimonWoolf
Copy link
Member

out of interest, why is there a public version of assertValidToken()? it's not part of our documented api, and not called outside of the Auth class AFAICS. (of java I know from nothing, so sorry if that's a stupid question)

@tcard
Copy link
Contributor Author

tcard commented Sep 29, 2017

@SimonWoolf I don't know. Maybe it was unintended, maybe whoever did it thought users could be interested in asserting there's a valid token at any time. Anyway, we can't change it now.

@tcard tcard merged commit 3ec0d8a into master Sep 29, 2017
@paddybyers
Copy link
Member

LGTM, thanks

@funkyboy funkyboy deleted the 350-renew-token branch March 16, 2018 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants