Usage
Parameters
The mutation accepts an object with:Return Value
MigrateWalletToPasskeyResult
How It Works
- A new passkey is created in the browser/device (triggers biometric prompt)
- The wallet’s private key is decrypted using
oldEncryptKey(the PIN) - The private key is re-encrypted using the passkey-derived key
- The updated wallet is returned — persist the new wallet object and
credentialId
Example Implementation
Related
- Use Passkeys Guide — Full passkey setup walkthrough
- useCreateWallet — Create a wallet with passkey from the start (set
usePasskey: true)
