Giter VIP home page Giter VIP logo

Comments (5)

michaelvanstraten avatar michaelvanstraten commented on August 21, 2024 1

I will get to it as soon as I can.

from actix-jwt-auth-middleware.

michaelvanstraten avatar michaelvanstraten commented on August 21, 2024

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.

IsaacJReay avatar IsaacJReay commented on August 21, 2024

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.

michaelvanstraten avatar michaelvanstraten commented on August 21, 2024

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.

IsaacJReay avatar IsaacJReay commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.