Advanced Usage
Use your own SIWS (Sign-in-with-Solana) implementation
"use client";
import { useWallet } from "@solana/wallet-adapter-react";
import type { PropsWithChildren } from "react";
import { TorqueProvider } from "@torque-labs/torque-ui";
export function TorqueWrapper({ children }: PropsWithChildren) {
const { wallet } = useWallet();
return (
<TorqueProvider wallet={wallet} autoInit={false}>
{children}
</TorqueProvider>
);
}Initialize after a callback or user interaction
Last updated