You can add SSX to your app using your favorite package manager.
yarn add @spruceid/ssx
# or
npm install @spruceid/ssx
# or
pnpm add @spruceid/ssx
and then you can use it in your app.
import { SSX } from "@spruceid/ssx";
const buttonHandler = async () => {
const ssx = new SSX();
const session = await ssx.signIn();
const address = ssx.address();
};
For full documentation, see the SSX Docs