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

Do not check for Refresh Token presence in hasValid(minTTL:) #574

Merged
merged 5 commits into from
Dec 7, 2021

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented Dec 7, 2021

Changes

⚠️ THIS PR CONTAINS BREAKING CHANGES

Currently, the hasValid(minTTL:) method of the Credentials Manager returns true if there is a Refresh Token present. That makes it unusable in practice for the customers that use Refresh Tokens, because then there's no reliable way to tell if the credentials have expired or will expire in a given timeframe.

This PR removes the Refresh Token presence check from hasValid(minTTL:), and the hasValid(minTTL:) calls before self.retrieveCredentials() (because self.retrieveCredentials() does the same checks inside).

See https://auth0team.atlassian.net/browse/ESD-15401?focusedCommentId=406799

Testing

  • This change adds unit test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@Widcket Widcket requested a review from a team as a code owner December 7, 2021 00:34
@Widcket Widcket added the review:small Small review label Dec 7, 2021
@Widcket Widcket merged commit 08e8945 into beta Dec 7, 2021
@Widcket Widcket deleted the v2/has-valid branch December 7, 2021 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review:small Small review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants