Function
fetchLoginDetails
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
client to use when calling the blockchain
- authDescriptor: AnyAuthDescriptorRegistration
the auth descriptor for which to fetch login details
- loginConfig: LoginConfigOptions | null = null
optional login config to override
Returns Promise<{ accountId: Buffer; loginDetails: LoginDetails | null }>
Remarks
If no config object is provided, the resulting login details will also be null
- connection: Connection