Fix as_date()'s std::bad_cast with decimal value by Prosperoh · Pull Request #240 · Thalhammer/jwt-cpp
Navigation Menu
{{ message }}
Thalhammer / jwt-cpp Public
- Notifications You must be signed in to change notification settings
- Fork 302
Merged
Thalhammer merged 5 commits intoThalhammer:masterfrom
Sep 14, 2022Merged
Fix as_date()'s std::bad_cast with decimal value#240
Thalhammer merged 5 commits intoThalhammer:masterfrom
Fix as_date()'s std::bad_cast with decimal value#240
Thalhammer merged 5 commits intoThalhammer:masterfrom
Conversation
Copy link
Contributor
Prosperoh
commented
Sep 13, 2022
Prosperoh
commented
If the timestamp value for the date is a decimal number, round it to the closest integer. This allows date claims to have a decimal value, though it will be rounded up to the closest second.
Prosperoh added 2 commits
September 13, 2022 15:20
Prosperoh
mentioned this pull request
1 task
Prosperoh
changed the title
Fix as date bad cast with decimal value
Fix as_date() bad cast with decimal value
Prosperoh
changed the title
Fix as_date() bad cast with decimal value
Fix as_date()'s std::bad_cast with decimal value
Thalhammer reviewed Sep 13, 2022
include/jwt-cpp/jwt.h
Outdated
Show resolved
Hide resolved
include/jwt-cpp/jwt.h Outdated Show resolved Hide resolved
Thalhammer approved these changes Sep 14, 2022
Thalhammer added 2 commits
September 14, 2022 12:41Signed-off-by: Dominik Thalhammer <dominik@thalhammer.it>
Signed-off-by: Dominik Thalhammer <dominik@thalhammer.it>
Thalhammer
merged commit
6830943
into
Thalhammer:master
prince-chrismc
modified the milestones:
0.6.1,
0.7.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Comments