
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@trezor/connect-mobile
Advanced tools
The @trezor/connect-mobile
package provides an implementation of @trezor/connect
which uses deep links to communicate with the Trezor Suite Lite app.
To run a dev version of the Suite mobile app follow the instructions in @suite-native/app
To use the library, you need to initialize it with the deeplinkOpen
and deeplinkCallbackUrl
settings.
import TrezorConnect from '@trezor/connect-mobile';
TrezorConnect.init({
manifest: {
email: 'developer@xyz.com',
appName: 'Trezor Connect Example',
appUrl: 'http://your.application.com',
},
deeplinkOpen: url => {
// eslint-disable-next-line no-console
console.log('deeplinkOpen', url);
Linking.openURL(url);
},
deeplinkCallbackUrl: Linking.createURL('/connect'),
});
To receive the deep link callback, you need to add a listener which will call TrezorConnect.handleDeeplink
with the deep link URL.
useEffect(() => {
const subscription = Linking.addEventListener('url', event => {
TrezorConnect.handleDeeplink(event.url);
});
return () => subscription?.remove();
}, []);
The Connect mobile example shows how to use the library in a React Native + Expo app.
FAQs
Unknown package
The npm package @trezor/connect-mobile receives a total of 68 weekly downloads. As such, @trezor/connect-mobile popularity was classified as not popular.
We found that @trezor/connect-mobile demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.