Skip to main content

Integrate via

npm package

npm i --save @toruslabs/solana-embed
import Torus from "@toruslabs/solana-embed";

const torus = new Torus();
await torus.init();
await torus.login();

Development Environment

If you are developing with the Torus Wallet in a local environment, https is necessary to interact with solana.tor.us.

In general, the Torus wallet integration only works in a secure browser environment, as it needs access to browser APIs like window.open and window.crypto.