Skip to content

Conversation

@cirosec
Copy link

@cirosec cirosec commented Nov 29, 2024

This PR fixes #82.
The JWT Standard defines the Numerical Date as either a Unix Epoch in seconds or a non-integer value from RFC3339 (https://www.rfc-editor.org/rfc/rfc7519#section-2). Currently, passing a RFC3339 formatted date leads to a ValueError.
This Error gets caught and instead the date is parsed as ISO / RFC3339. If the date can also not be parsed as ISO, the script will still throw a value error.
Implementing further date parsing, for example for the date formats shown in #95 could be considered, but would not follow the standard.
Cheers, JM-Lemmi

catch timestamp error and attempt to convert from isoformat
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.

ValueError: invalid literal for int() with base 10:

2 participants