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

> fetchLoginDetails(
    connection: Connection ,
    authDescriptor: AnyAuthDescriptorRegistration ,
    loginConfig?: LoginConfigOptions | null,
): Promise

Source: https://docs.chromia.com/pages/ft4-ts-client/functions/registration.fetchLoginDetails/

Function

# fetchLoginDetails

* ```signature
  fetchLoginDetails(
      connection: Connection,
      authDescriptor: AnyAuthDescriptorRegistration,
      loginConfig?: LoginConfigOptions | null,
  ): Promise<{ accountId: Buffer; loginDetails: LoginDetails | null }>
  ```

  Fetches the login details for an auth descriptor.

  If no login config options are provided then this function will
  only return the account id associated with the auth descriptor.

  In order to also get login details, login config options can be
  provided. In which case, the caller can specify either which
  config to load from the blockchain, or provide their own.

  #### Parameters

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

    client to use when calling the blockchain
  + authDescriptor: [AnyAuthDescriptorRegistration](https://docs.chromia.com/pages/ft4-ts-client/types/accounts.AnyAuthDescriptorRegistration/)

    the auth descriptor for which to fetch login details
  + loginConfig: [LoginConfigOptions](https://docs.chromia.com/pages/ft4-ts-client/types/authentication.LoginConfigOptions/) | null = null

    optional login config to override

  #### Returns Promise<{ accountId: Buffer; loginDetails: [LoginDetails](https://docs.chromia.com/pages/ft4-ts-client/types/registration.LoginDetails/) | null }>

  #### Remarks

  If no config object is provided, the resulting login details will also be null

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