Giter Club home page Giter Club logo

Comments (2)

roosmaa avatar roosmaa commented on August 22, 2024 3

This sounds like an issue I solved for my Nano (the currency) app. The underlying problem here is that the Chrome U2F extension has a hard-coded timeout of 31 seconds (if memory serves). When it hasn't received an answer from the dongle during that time it will kill the request.

There is a way to allow for longer requests, but it requires support from the app running on the Ledger device. The trick is to return the BUSY U2F status code before the 31 second hard-timeout. That will force the U2F extension to retry the request. But this also means that the Ledger app needs to be able to map the 2nd incoming request to the 1st one that's still ongoing (or that recently finished).

I guess the best way would be to just document this in setExchangeTimeout and warn ledger.js users that most apps out there don't handle timeouts of more than 30 seconds well.

Here are the relevant Nano [currency] app code snippets that allow for longer requests:

from ledgerjs.

gre avatar gre commented on August 22, 2024

it will be more and more recommended to use WebUSB/WebHID over U2F.

from ledgerjs.

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.