Function
ttlLoginRule
ttlLoginRule(ttl: number): LoginConfigSimpleRuleCreates a login rule which represents "this rule will be valid for
ttlseconds", wherettlis the input to the function. Goes great with the functions for representing time. E.g.,Plain textttlLoginRule(30) // Valid for 30 seconds ttlLoginRule(minutes(10)) // Valid for 10 minutes ttlLoginRule(days(2)) // Valid for 2 days ...Parameters
- ttl: number
for how long (in seconds) the rule is valid.
Returns LoginConfigSimpleRule
- ttl: number