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

> createAuthenticator(
    accountBufferId: BufferId,
    keyHandlers: KeyHandler [],
    authDataService: AuthDataService ,
): Authenticator Creates a new a

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

Function

# createAuthenticator

* ```signature
  createAuthenticator(
      accountBufferId: BufferId,
      keyHandlers: KeyHandler[],
      authDataService: AuthDataService,
  ): Authenticator
  ```

  Creates a new authenticator instance from the specified arguments

  #### Parameters

  + accountBufferId: BufferId

    the id of the account for which this authenticator is valid
  + keyHandlers: [KeyHandler](https://docs.chromia.com/pages/ft4-ts-client/interfaces/authentication.KeyHandler/)[]

    any key handlers that can be used to authenticate against this account
  + authDataService: [AuthDataService](https://docs.chromia.com/pages/ft4-ts-client/interfaces/authentication.AuthDataService/)

    an auth data service that will be used when interacting with the account

  #### Returns [Authenticator](https://docs.chromia.com/pages/ft4-ts-client/interfaces/authentication.Authenticator/)

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