FUNCTION
delete_expired_auth_descriptors
function delete_expired_auth_descriptors(account: account, keep_auth_desc: account_auth_descriptor?): set<immutable_mirror_struct<account_auth_descriptor>>Deletes all expired auth descriptors associated with an account, except keep_auth_desc if
not null.
Can only be called from an operation.
Throws if the rules to any of the auth descriptors associated with the account have invalid rules.
Throws if the main auth descriptor for the account has expired. This should never happen, as main auth descriptors with rules cannot be added via FT4.
Parameters
- account — the account to clean up
- keep_auth_desc — the account_auth_descriptor used in the current operation. It should not be deleted even if expired
Returns
set<struct<account_auth_descriptor>> deleted_descriptors
See Also
- account_auth_descriptor.rules — for the list of valid GTV representations of rules.
© 2024 Chromia