Open ahmadardal opened 1 year ago
Ah the docs should be updated.
Yea that would be nice. In the meantime, would you say that my workaround is the recommended way now?
let mut validation = Validation::default();
validation.leeway = 60;
That or Validation::new(Algorithm::..)
with the alg you are using
Hello!
According to the docs, if we want to extend the Validation rules we can do it like the example provided in the docs:
However if we use this code, we get the following error:
This issue is addressed already before but it was weirdly closed without either fixing it or providing an alternative way to bypass the error and update the docs for it.
https://github.com/Keats/jsonwebtoken/issues/255