Coder Social home page Coder Social logo

Comments (3)

mroz22 avatar mroz22 commented on May 30, 2024 1

I think you need to give permissions in trezor popup page (with save option). after it is done you will be receiving events.

from community.

ta32 avatar ta32 commented on May 30, 2024

That works thanks. Once the origin is trusted it will receive device events.
{"permissions":[{"origin":"https://tmp.local:3000"}

I also noticed you need to call a method like
TrezorConnect.getPublicKey
for the popup page to show the option to save permissions.

If I only call TrezorConnect.getFeatures()
The popup page will not ask the user to trust the origin, its just blank and closes.

I am using the device events to subscribe to device connect events to show the device in a dropdown.

edit I can use this method: "https://trezor.github.io/trezor-suite/connect-explorer/#/method/cipherKeyValue"
I can display a message like activate trezor password manager.

However Its a very poor user experience, since they are prompted to connect as soon as they are on the site.

from community.

ta32 avatar ta32 commented on May 30, 2024

image
https://trezor.github.io/trezor-suite/connect-explorer/#/method/requestLogin-sync

This method is probably better, it causes the pop-up page to be displayed.

from community.

Related Issues (13)

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.