Comments (5)
I will get to it as soon as I can.
from actix-jwt-auth-middleware.
Hi Isaac,
sorry for the wait, I am currently on holiday.
The error you are getting is not related to versioning issues, but to the fact that the Duration struct you are passing is not the correct type. The type you passed originates from the time crate, the type that is required is the Duration type from the chrono crate.
I took a look at the documentation and noticed that the referenced type is the time::Duration type not the chrono::Duration type, this is very odd.
Could you send me the current git commit you are on?
from actix-jwt-auth-middleware.
I used the latest v0.3.0 straight from https://crates.io. I literally do not know what commit it came from, though. But, i saw that you already made some changes to main a short while ago
from actix-jwt-auth-middleware.
I response to your issue I made the public interface use the std::time::Duration
instead. Does that fix your issue?
But I think I will be retracting this commit because the std Duration does not offer convenient options to initialize longer durations.
from actix-jwt-auth-middleware.
Yes, it works when you use the std::time::Duration
. And like you have said, It is very difficult to set longer duration. And, i found that when I tried to build release with the git version, derive-elves
caused error that said it cannot be used for stable release channel. But anyway, I would love to go back to Chrono
crate, but could you make it work properly, or is there other solution you may try?
from actix-jwt-auth-middleware.
Related Issues (11)
- Example `use_jwt` clarification HOT 1
- jwt_compact::traits::Algorithm is not implemented for Ed25519 HOT 10
- error: failed to run custom build command for exonum-proto v1.0.0 HOT 11
- enable_authorization_header not available in version 0.3.0 of published crate HOT 5
- allowing specific endpoints to be authorized by JWT HOT 11
- Example simple.rs is not up to date
- Use utoipa_swagger_ui HOT 2
- Implement clear and easy rest API Functionality
- exonum-crypto is a forced feature on jwt-compact, against this crate's documentation HOT 1
- examples/simple.rs does not work on linux HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actix-jwt-auth-middleware.