Make sure you have configured delegated access in the dashboard before triggering delegation.
Dynamic’s UI
Auto-prompt User on Sign In
If you chose to prompt the user on sign in during the configuration step, the user is prompted to approve delegation for your application when they next sign in.Trigger Delegation Manually
You can use theinitDelegationProcess method from the wallets module to open the delegation modal UI:
Check If User Should Be Prompted
Before prompting, you can check whether the user should see a delegation prompt:Your Own UI
You can usedelegateKeyShares to delegate wallets programmatically without showing any Dynamic UI:
Monitor Delegation State
You can observe delegation state changes using Combine:Check Wallet Delegation Status
Dismiss or Deny Delegation
What's next?
Learn how to properly receive the delegation materials on your server