Add a passkey signer on a different OS
Allow your user to access their wallet from several devices with different OS environment
1. Create a new signer object on another device
import { createNewSigner } from "@cometh/connect-sdk-4337";
const signerObject = await createNewSigner({
smartAccountAddress: TARGET_ACCOUNT_ADDRESS,
});
/*
In the case of passkeys, the signer object should look like:
{
signerAddress: SIGNER_ADDRESS,
deviceData: {
browser: "Firefox",
os: "macOS",
platform: "desktop",
};
publicKeyId: "0x...";
publicKeyX: "0x...";
publicKeyY: "0x...";
}
*/
2. Prepare the new device validation
3. Validate the new device
Last updated