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

# useMultiFileAuthState

> stores the full authentication state in a single folder.

> **useMultiFileAuthState**(`folder`): `Promise`\<\{ `saveCreds`: () => `Promise`\<`void`>; `state`: [`AuthenticationState`](/api-reference/type-aliases/AuthenticationState); }>

Defined in: [src/Utils/use-multi-file-auth-state.ts:33](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/use-multi-file-auth-state.ts#L33)

stores the full authentication state in a single folder.
Far more efficient than singlefileauthstate

Again, I wouldn't endorse this for any production level use other than perhaps a bot.
Would recommend writing an auth state for use with a proper SQL or No-SQL DB

## Parameters

### folder

`string`

## Returns

`Promise`\<\{ `saveCreds`: () => `Promise`\<`void`>; `state`: [`AuthenticationState`](/api-reference/type-aliases/AuthenticationState); }>
