Remove session signers
Once a user’s wallet has session signers, they may also revoke consent to prevent your app from taking any further wallet actions on their behalf.
To remove all the session signers on the wallet,, use the removeSessionSigners
method from the useSessionSigners
hook:
Usage
When invoked, the removeSessionSigners
method will remove all the session signers on the wallet, so only the user can transact on the wallet.
After this action, your app will no longer be able to take actions on behalf of the user with their wallet unless the user adds more session signers.
Parameters
The removeSessionSigners
method accepts a params
object with the following fields:
Address of the embedded wallet to delegate.
As an example, you might have a button within your app to allow users to remove all session signers like so:
To remove all the session signers on the wallet,, use the removeSessionSigners
method from the useSessionSigners
hook:
Usage
When invoked, the removeSessionSigners
method will remove all the session signers on the wallet, so only the user can transact on the wallet.
After this action, your app will no longer be able to take actions on behalf of the user with their wallet unless the user adds more session signers.
Parameters
The removeSessionSigners
method accepts a params
object with the following fields:
Address of the embedded wallet to delegate.
As an example, you might have a button within your app to allow users to remove all session signers like so:
To remove session signers from users wallets automatically, without a revocation screen, use the revokeWallets
method from the useHeadlessDelegatedActions
hook:
When invoked, the revokeWallets
method will remove all of the session signers on the user’s wallets.
Once a user confirms revocation, your app will no longer be able to take actions on behalf of the user with their wallet unless the user adds new session signers.
If a user has provisioned multiple session signers, they will all be revoked.
As an example, you might have a button within your app to allow users to remove all of the session signers on a user’s wallets like so: