-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix parse token expiration #2650
Fix parse token expiration #2650
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @jerolimov !
Just a few minor tweaks, please, then we should be ready for a second LGTM+Approval before merging.
Codecov Report
@@ Coverage Diff @@
## master #2650 +/- ##
=======================================
Coverage 98.07% 98.08%
=======================================
Files 130 130
Lines 11302 11304 +2
=======================================
+ Hits 11085 11087 +2
Misses 148 148
Partials 69 69
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
nice one, thanks |
4fd3a6c
to
b3543f7
Compare
@gmlewis thanks for the feedback, updated the PR. I took everything. 👍 |
b3543f7
to
9bac7a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @jerolimov !
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thank you, @valbeat ! |
Solves #2649 issue without breaking API changes.
If you prefer I could also make it optional (
TokenExpiration *Timestamp
) so that it's not required to check for "is timestamp equals 0001-01-01)Or by adding a new
type TokenExpiration time.Time
with afunc IsValid
for a token that has no expiration header?!But both would change the public API and for my first PR here I focused on fixing just the bug without an API change.