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

> firstAllowedAuthDescriptor(
    opName: string,
    args: RawGtv,
    accountId: BufferId,
    ids: BufferId[],
): QueryObject<
    Buffer<ArrayBufferLike>

Source: https://docs.chromia.com/pages/ft4-ts-client/functions/utils.firstAllowedAuthDescriptor/

Function

# firstAllowedAuthDescriptor

* ```signature
  firstAllowedAuthDescriptor(
      opName: string,
      args: RawGtv,
      accountId: BufferId,
      ids: BufferId[],
  ): QueryObject<
      Buffer<ArrayBufferLike>
      | null,
      {
          account_id: Buffer;
          ad_ids: Buffer<ArrayBufferLike>[];
          args: RawGtv;
          op_name: string;
      },
  >
  ```

  Finds the first auth descriptor from a list of auth descriptors
  which will be allowed to perform the specified operation on the account.

  #### Parameters

  + opName: string

    the name of the operation to perform
  + args: RawGtv

    the args which will be passed to the operation
  + accountId: BufferId

    the account with which the auth descriptor is associated
  + ids: BufferId[]

    list of auth descriptor ids to select from

  #### Returns QueryObject<     Buffer<ArrayBufferLike>     | null,     {         account\_id: Buffer;         ad\_ids: Buffer<ArrayBufferLike>[];         args: RawGtv;         op\_name: string;     }, >

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