# Type Alias: UserAuthenticationDef

> **UserAuthenticationDef** = [`AuthenticationDef`](../AuthenticationDef/) & `object`

Defined in: [api_types.ts:711](https://github.com/coda/packs-sdk/blob/85723eac0f7da81e50a908e4e7306e48d7810c8a/api_types.ts#L711)

A full definition of a pack's user authentication settings, used in [PackDefinitionBuilder.setUserAuthentication](../../classes/PackDefinitionBuilder/#setuserauthentication).

## Type Declaration

| Name | Type | Description | Defined in | | --- | --- | --- | --- | | `defaultConnectionRequirement?` | [`ConnectionRequirement`](../../enumerations/ConnectionRequirement/) | It can be annoying to set `connectionRequirement` on every building block in a Pack. Use this setting in your Pack's auth settings to quickly say "every building block in this Pack requires an account". Without a connectionRequirement, building blocks will be assumed to not need account connections. | [api_types.ts:718](https://github.com/coda/packs-sdk/blob/85723eac0f7da81e50a908e4e7306e48d7810c8a/api_types.ts#L718) |
