You can associate your Twitter account with your DEMOS address by following these steps:
1. Connect your wallet
import { Demos, DemosWebAuth } from "@kynesyslabs/demosdk";
import { Identities } from "@kynesyslabs/demosdk/abstraction";
// the DEMOS rpc
const rpc = "https://demosnode.discus.sh"
const demos = new Demos();
await demos.connect(rpc);
// Create a new keypair
const identity = new DemosWebAuth();
await identity.create()
await demos.connectWallet(identity.keypair.privateKey);
// OR use existing
await demos.connectWallet("f7b9d5703c...")
2. Generate the Proof Payload
To link your Twitter account to your DEMOS address, you need to create a public tweet containing a proof on your twitter account. The proof is a string that contains a message, a signature and your public key.