# relativeBlockTime · FT4 TypeScript client · Chromia Docs (concept)

> relativeBlockTime(value: number): RuleVariableValue < LoginConfigRuleVariable > Creates a login config rule variable of type relative block time
which will

Source: https://docs.chromia.com/pages/ft4-ts-client/functions/authentication.relativeBlockTime/

Function

# relativeBlockTime

* ```signature
  relativeBlockTime(value: number): RuleVariableValue<LoginConfigRuleVariable>
  ```

  Creates a login config rule variable of type relative block time
  which will expire after `value` number of seconds after this was registered.
  Works well together with the time functions of this module. E.g.,

  Plain text

  ```
  relativeBlockTime(hours(2)) // Expires after two hours
  ```

  #### Parameters

  + value: number

    after how many seconds this rule should expire

  #### Returns [RuleVariableValue](https://docs.chromia.com/pages/ft4-ts-client/types/accounts.RuleVariableValue/)<[LoginConfigRuleVariable](https://docs.chromia.com/pages/ft4-ts-client/types/authentication.LoginConfigRuleVariable/)>

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-ts-client/functions/authentication.relativeBlockTime.html)Generated API reference, mirrored from the live docs
