useRevokeSessions hook to revoke session keys from the connected Abstract Global Wallet, preventing the session keys from being able to execute any further transactions.
Import
Usage
Returns
function
Function to revoke session keys. Accepts a
RevokeSessionsArgs object containing:The session(s) to revoke. Can be provided as an array of:- Session configuration objects
- Transaction hashes of when the sessions were created
- A mix of both session configs and transaction hashes
function
Async function to revoke session keys. Takes the same parameters as
revokeSessions.boolean
Whether the session revocation is in progress.
boolean
Whether the session revocation resulted in an error.
Error | null
Error object if the session revocation failed.