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

> authHandlerForOperation(
    opName: string,
): QueryObject< AuthHandler | null, { op_ name: string }> Fetches the auth handler for the specified operation

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

Function

# authHandlerForOperation

* ```signature
  authHandlerForOperation(
      opName: string,
  ): QueryObject<AuthHandler | null, { op_name: string }>
  ```

  Fetches the auth handler for the specified operation, or null if there is no
  auth handler associated with this operation.

  #### Parameters

  + opName: string

    the name of the operation

  #### Returns QueryObject<[AuthHandler](https://docs.chromia.com/pages/ft4-ts-client/types/authentication.AuthHandler/) | null, { op\_name: string }>

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