Skip to content

Add example of using chrono::DateTime in claims#83

Merged
Keats merged 1 commit intoKeats:nextfrom
kellenff:chrono-example
Jun 16, 2019
Merged

Add example of using chrono::DateTime in claims#83
Keats merged 1 commit intoKeats:nextfrom
kellenff:chrono-example

Conversation

@kellenff
Copy link
Copy Markdown
Contributor

@kellenff kellenff commented Apr 1, 2019

Using chrono's serde feature uses ISO 8601 instead of a Unix
timestamp as specified in RFC 7519 section 2, "NumericDate". This
example uses custom de/serialize functions as shown in the serde.rs
example, "Custom Date Format"
.

NOTE: Currently fractional values are not supported in the example,
though they are in the spec.

Resolves #82

Using `chrono`'s `serde` feature uses ISO 8601 instead of a Unix 
timestamp as specified in RFC 7519 section 2, "NumericDate". This 
example uses  custom de/serialize functions as shown in the [serde.rs 
example, "Custom Date 
Format"](https://serde.rs/custom-date-format.html).

NOTE: Currently fractional values are not supported in the example, 
though they are in the spec.
@Keats Keats changed the base branch from master to next June 16, 2019 16:13
@Keats Keats merged commit d6d0da7 into Keats:next Jun 16, 2019
@Keats
Copy link
Copy Markdown
Owner

Keats commented Jun 16, 2019

Late to get to that, sorry!

JadedBlueEyes referenced this pull request in JadedBlueEyes/jsonwebtoken Apr 13, 2023
Add example of using `chrono::DateTime` in claims
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.

2 participants