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

> login(
    connection: Connection ,
    keyStore: KeyStore ,
    loginOptions: LoginOptions ,
): Promise< SessionWithLogout > Uses the provided keystore to

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

Function

# login

* ```signature
  login(
      connection: Connection,
      keyStore: KeyStore,
      loginOptions: LoginOptions,
  ): Promise<SessionWithLogout>
  ```

  Uses the provided keystore to log into the specified account

  #### Parameters

  + connection: [Connection](https://docs.chromia.com/pages/ft4-ts-client/interfaces/ft-session.Connection/)

    to interact with the blockchain that hosts the account
  + keyStore: [KeyStore](https://docs.chromia.com/pages/ft4-ts-client/interfaces/authentication.KeyStore/)

    keystore used to sign into the account. Must be tied to an auth descriptor associated with the account
  + loginOptions: [LoginOptions](https://docs.chromia.com/pages/ft4-ts-client/types/authentication.LoginOptions/)

    what account to sign into and other options

  #### Returns Promise<[SessionWithLogout](https://docs.chromia.com/pages/ft4-ts-client/types/authentication.SessionWithLogout/)>

  the authorized session

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