Revoking session signers
Once a user has provisioned a session signer, they may also revoke consent to prevent your app from taking any further wallet actions on their behalf.
To revoke all session signers on users wallets automatically, without a revocation screen, use the revokeWallets
method from the useHeadlessDelegatedActions
hook:
Usage
When invoked, the revokeWallets
method will revoke all of the session signers provisioned on all of 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 provisions a session signer.
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 revoke session signer provisioned wallets like so:
To revoke all session signers on users wallets automatically, without a revocation screen, use the revokeWallets
method from the useHeadlessDelegatedActions
hook:
Usage
When invoked, the revokeWallets
method will revoke all of the session signers provisioned on all of 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 provisions a session signer.
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 revoke session signer provisioned wallets like so:
To revoke all session signers on users wallets automatically, without a revocation screen, use the revokeWallets
method from the useHeadlessDelegatedActions
hook:
Usage
When invoked, the revokeWallets
method will revoke all of the session signers on 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 provisions a session signer.
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 revoke all session signers on a user’s wallets like so: