rule_variable
Similar to accounts.rule_variable
, but it adds two more variables that only make sense in the context of login auth descriptors:
relative_block_time
is the difference in timestamp between the auth descriptor creation and its expirationrelative_block_height
is the difference in block number between the auth descriptor creation and its expiration
These two variables are not useful for normal auth descriptors, as those are created at the same time of definition. In the case of login auth descriptors, the definition happens during the dapp development, while they're created anytime a user logs in. This allows the developer to define rules like a time to live for the login sessions.
See also
for more information on rule variables
for more information on expiration rules