Session Keys
useRevokeSessions
Hook for revoking session keys.
Use the 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 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
Async function to revoke session keys. Takes the same parameters as revokeSessions
.
Whether the session revocation is in progress.
Whether the session revocation resulted in an error.
Error object if the session revocation failed.
Was this page helpful?