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

Fix as_date()'s std::bad_cast with decimal value #240

Merged

Conversation

Prosperoh
Copy link
Contributor

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 Prosperoh changed the title Fix as date bad cast with decimal value Fix as_date() bad cast with decimal value Sep 13, 2022
@Prosperoh Prosperoh changed the title Fix as_date() bad cast with decimal value Fix as_date()'s std::bad_cast with decimal value Sep 13, 2022
include/jwt-cpp/jwt.h Outdated Show resolved Hide resolved
Signed-off-by: Dominik Thalhammer <dominik@thalhammer.it>
Signed-off-by: Dominik Thalhammer <dominik@thalhammer.it>
@Thalhammer Thalhammer merged commit 6830943 into Thalhammer:master Sep 14, 2022
@prince-chrismc prince-chrismc modified the milestones: 0.6.1, 0.7.0 Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants