> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# generateLoginNode

> Function generateLoginNode in the Baileys API.

> **generateLoginNode**(`userJid`, `config`): [`IClientPayload`](/proto-reference/interfaces/IClientPayload)

Defined in: [src/Utils/validate-connection.ts:74](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/validate-connection.ts#L74)

## Parameters

### userJid

`string`

### config

[`SocketConfig`](/api-reference/type-aliases/SocketConfig)

## Returns

[`IClientPayload`](/proto-reference/interfaces/IClientPayload)
