Overview
Once autosign is configured, you can enable and manage it in your application using theautoSign object from useInterwovenKit(). This guide covers all aspects of using autosign in your code.
Accessing Autosign
TheautoSign object is available through the useInterwovenKit hook:
Enabling Autosign
To enable autosign, call theenable() method. This opens a drawer where users can confirm the autosign setup and select an expiration duration.
Basic Usage
Enabling for a Specific Chain
Specify a chain ID to enable autosign for a particular chain:What Happens When Enabled
WhenautoSign.enable() is called:
1
Drawer Opens
A drawer appears asking the user to confirm autosign setup, showing which permissions will be granted.
2
User Selection
User can select an expiration duration from available defaults or use a custom duration.
3
Ghost Wallet Creation
Privy creates an embedded wallet if one doesn’t exist. This happens automatically in the background.
4
Permission Grant
User signs a single transaction to grant
authz and feegrant permissions to the ghost wallet.5
Activation
Autosign becomes active for the specified chain and message types. The Promise resolves on success.