| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
I have signed the CLA! |
Sorry, something went wrong.
|
hey @rafaelsorto, thanks for your contribution. Could you please add a test? |
Sorry, something went wrong.
Hey @Arkham I see that the tests are passing even with the previous code and also pass with my changes. Looking further into this it seems the only change is that isValid is not actually checked if you pass includeExpired set to true which misses the checks for a valid access_token and a valid scope. The default includeExpired check for a valid token, but the validity check does 3 things at once, checks the scope, checks the access_token and checks the date, includeExpired set to true avoids the expiration check but also avoids the other 2 checks at the same time. |
Sorry, something went wrong.
|
Yeah, what I'm suggesting is that you add a new test that would fail with the existing code, then it should pass when we change the implementation. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
includeExpired set to false is incorrectly forcing the loadOfflineSession method to always return null. Offline sessions should not be considered invalid automatically if they don't have an expiration date and the property should be used in the valid check to discard expired sessions.
WHY are these changes introduced?
Bug not reported for this issue. Identified on production.
Offline sessions not used even when they exist and token is valid
WHAT is this pull request doing?
Type of change
Checklist