> For the complete documentation index, see [llms.txt](https://appmaster.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://appmaster.gitbook.io/docs/business-logic/block/business-process-blocks/authentication.md).

# Authentication

Checks a user's login and password, and returns their auth token.

### Flow Connections <a href="#flow-connections" id="flow-connections"></a>

* \[Input] In - starts the block's execution.
* \[Output] Out - activates when the block has finished its execution.

### Data Connections <a href="#data-connections" id="data-connections"></a>

* \[Input] Login (email) - email of the user used as login.
* \[Input] Password (password) - encrypted password of the user.
* \[Output] User (model) - user model object stored in the database.
* \[Output] Token (string) - [Bearer token](https://swagger.io/docs/specification/authentication/bearer-authentication/) of the user. Used to authenticate the user in the application API.
