Giter VIP home page Giter VIP logo

Comments (8)

niftylettuce avatar niftylettuce commented on August 11, 2024

done, see [email protected] @sibeliusseraphini

from frisbee.

casoetan avatar casoetan commented on August 11, 2024

HI @niftylettuce How do I get it to work with JWT.

tried

api.auth('jwt token')

On inspecting the request, the token dispatched is wrong. This causes a JWT Wrong number of segments

from frisbee.

niftylettuce avatar niftylettuce commented on August 11, 2024

I believe JSON Web Tokens have different headers than BasicAuth. Perhaps you could add api.jwt method and send a pull request @casoetan? I think some people even pass it in the body of the request as token field. You could just do await api.post('/authenticate', { body: { token: 'my jwt' } });

from frisbee.

casoetan avatar casoetan commented on August 11, 2024

@niftylettuce pull request sent.

from frisbee.

niftylettuce avatar niftylettuce commented on August 11, 2024

Published v1.1.1 to npm. npm i --save [email protected] @casoetan

Thank you for your contributions! Would you like to be a collaborator here?

from frisbee.

casoetan avatar casoetan commented on August 11, 2024

That would be fine. What's the road map?

from frisbee.

niftylettuce avatar niftylettuce commented on August 11, 2024

@casoetan Can you join me in Slack? http://slack.crocodilejs.com Might be easier to chat there. I wanted to rewrite this package a bit -- and preserve the original response (or res) object rather due to issues in Chrome #11. Basically I wanted to get this working on all browsers too with automated tests. Have you experience there? Thanks!

from frisbee.

casoetan avatar casoetan commented on August 11, 2024

@niftylettuce I'm on you slack channel now.

from frisbee.

Related Issues (20)

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.