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

> authDescriptorCounter(
    accountId: BufferId,
    authDescriptorId: BufferId,
): QueryObject<
    number
    | null,
    { account_ id: Buffer; auth_ des

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

Function

# authDescriptorCounter

* ```signature
  authDescriptorCounter(
      accountId: BufferId,
      authDescriptorId: BufferId,
  ): QueryObject<
      number
      | null,
      { account_id: Buffer; auth_descriptor_id: Buffer },
  >
  ```

  Creates a query object that can be used to call the `ft4.get_auth_descriptor_counter`- query

  #### Parameters

  + accountId: BufferId

    the id of the account of which to get the counter
  + authDescriptorId: BufferId

    the id of the auth descriptor of which to get the counter

  #### Returns QueryObject<number | null, { account\_id: Buffer; auth\_descriptor\_id: Buffer }>

  the counter value or null if it was not found

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