Skip to main content
function useRevokeDelegation(): UseRevokeDelegationReturnType;
Hook that provides a function to revoke all active delegations for the current end user.

Returns

UseRevokeDelegationReturnType An object containing the revokeDelegation function.

Example

const { revokeDelegation } = useRevokeDelegation();
await revokeDelegation();