# add_login_config · FT4 Rell API · Chromia Docs (concept)

> function add_ login_ config(name: text, flags: list<text>, rules: gtv?): map<text, _login_config > Utility function to help extend the login_config functio

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.auth/add_login_config/

FUNCTION

# add\_login\_config

```signature
function add_login_config(name: text, flags: list<text>, rules: gtv?): map<text, _login_config>
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/core/auth/login.rell#lines-66)

Utility function to help extend the `login_config` function.

Example usage:

Plain text

```
@extend(auth.login_config)
function () = add_login_config(name, flags, rules);
```

**Parameters**

* **name** — the name of the login configuration
* **flags** — the flags to add to the login auth descriptor
* **rules** — the expiration rules the login auth descriptor will have

**See Also**

* [\_login\_config](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.auth/_login_config/) — for more information about login configurations.

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.core.auth/add_login_config.html)Generated API reference, mirrored from the live docs
