[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/auth](../README) / AuthConfigShape

# Interface: AuthConfigShape

Defined in: [auth/src/config.ts:8](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/auth/src/config.ts#L8)

Shape of `config/auth.ts` — package-level auth options. Build one with
[AuthConfig](../functions/AuthConfig), which applies defaults (`algorithm: 'argon2id'`).

## Properties

### algorithm

> **algorithm**: `"bcrypt"` \| `"argon2id"`

Defined in: [auth/src/config.ts:10](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/auth/src/config.ts#L10)

Password hashing algorithm. Default: 'argon2id'

***

### twoFactor?

> `optional` **twoFactor?**: [`TwoFactorOptions`](TwoFactorOptions)

Defined in: [auth/src/config.ts:13](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/auth/src/config.ts#L13)

Two-factor authentication configuration.
