Keats / jsonwebtoken

JWT lib in rust
MIT License
1.67k stars 266 forks source link

A potentially better custom timestamp solution #342

Closed BrandonDyer64 closed 10 months ago

BrandonDyer64 commented 11 months ago

This switches the timestamp functionality in the internal validate function to be more of a dependency injection, and exposes the relevant parameter to the lib user through an alternate decode_with_timestamp function.

It's less clean, in my opinion, than including a timestamp in Validate, but it gets the job done