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

> createAuthDescriptorValidator(
    authDataService: AuthDataService ,
    useCache: boolean,
): AuthDescriptorValidator Creates an AuthDescriptorValidator 

Source: https://docs.chromia.com/pages/ft4-ts-client/functions/accounts.createAuthDescriptorValidator/

Function

# createAuthDescriptorValidator

* ```signature
  createAuthDescriptorValidator(
      authDataService: AuthDataService,
      useCache: boolean,
  ): AuthDescriptorValidator
  ```

  Creates an `AuthDescriptorValidator` that can be used to validate auth descriptors

  #### Parameters

  + authDataService: [AuthDataService](https://docs.chromia.com/pages/ft4-ts-client/interfaces/authentication.AuthDataService/)

    the auth data service to use
  + useCache: boolean

    wether the validator should store validation results between calls or if it should perform a new validation each time

  #### Returns [AuthDescriptorValidator](https://docs.chromia.com/pages/ft4-ts-client/types/accounts.AuthDescriptorValidator/)

  an `AuthDescriptorValidator` instance

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