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 expiration

  • relative_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

core.accounts.rule_variable

for more information on rule variables

core.accounts.rule_expression

for more information on expiration rules

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard