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

> type AuthDescriptorValidator = { hasExpired : (authDescriptor: AnyAuthDescriptor ) => Promise<boolean>; isActive : (authDescriptor: AnyAuthDescriptor ) => 

Source: https://docs.chromia.com/pages/ft4-ts-client/types/accounts.AuthDescriptorValidator/

Type Alias

# AuthDescriptorValidator

On this page

* [Properties](#properties)
* [hasExpired](#hasexpired)
* [isActive](#isactive)

```signature
type AuthDescriptorValidator = {
    hasExpired: (authDescriptor: AnyAuthDescriptor) => Promise<boolean>;
    isActive: (authDescriptor: AnyAuthDescriptor) => Promise<boolean>;
}
```

## Properties

### hasExpired

```signature
hasExpired: (authDescriptor: AnyAuthDescriptor) => Promise<boolean>
```

Verifies if the auth descriptor has expired or not.
An auth descriptor has expired if the rules specified
by the auth descriptor are violated in such a way that
they will never be valid again, e.g., maximum number
of operations reached.

#### Type Declaration

* ```signature
  (authDescriptor: AnyAuthDescriptor): Promise<boolean>
  ```

  + #### Parameters

    - authDescriptor: [AnyAuthDescriptor](https://docs.chromia.com/pages/ft4-ts-client/types/accounts.AnyAuthDescriptor/)

      the auth descriptor to check

    #### Returns Promise<boolean>

### isActive

```signature
isActive: (authDescriptor: AnyAuthDescriptor) => Promise<boolean>
```

Verifies if the auth descriptor is active or not.
An auth descriptor is active if it has been enforced
at least once. I.e., an auth descriptor will be active
and expired at the same time when it expire. The only time
an auth descriptor will not be active is if it has rules
such that it will become valid in the future.

#### Type Declaration

* ```signature
  (authDescriptor: AnyAuthDescriptor): Promise<boolean>
  ```

  + #### Parameters

    - authDescriptor: [AnyAuthDescriptor](https://docs.chromia.com/pages/ft4-ts-client/types/accounts.AnyAuthDescriptor/)

      the auth descriptor to check

    #### Returns Promise<boolean>

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