# Autenticacion por dos (1)

### Nombre del servicio

- **Módulo:** Auth
- **Servicio:**

### Contexto funcional

- **¿Cuándo se usa?** Cuando ingresa al modulo **“Auth”**
- **¿Qué hace?**
- **Pantallazo de la app:**

[![image.png](https://shalom-documentation.shalomcontrol.com/uploads/images/gallery/2025-10/scaled-1680-/CS1image.png)](https://shalom-documentation.shalomcontrol.com/uploads/images/gallery/2025-10/CS1image.png)

### Detalles técnicos

- **Dominio: [`https://qahorario-salida.shalomcontrol.com`](https://qahorario-salida.shalomcontrol.com/)**
- **Endpoint:** `api/auth/generate-code-two-factor-authentication`
- **Método:** `POST`
- **Headers:** `Authorization: Bearer <token>` (no aplica)

**Request ejemplo:**

```json
{
    "username": "76458910"
}

```

**Response ejemplo:**

```json

<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Server Error</title>

    <!-- Fonts -->
    <link rel="dns-prefetch" href="//fonts.gstatic.com">
    <link href="<https://fonts.googleapis.com/css?family=Nunito>" rel="stylesheet">

    <!-- Styles -->
    <style>
        html,
        body {
            background-color: #fff;
            color: #636b6f;
            font-family: 'Nunito', sans-serif;
            font-weight: 100;
            height: 100vh;
            margin: 0;
        }

        .full-height {
            height: 100vh;
        }

        .flex-center {
            align-items: center;
            display: flex;
            justify-content: center;
        }

        .position-ref {
            position: relative;
        }

        .code {
            border-right: 2px solid;
            font-size: 26px;
            padding: 0 15px 0 15px;
            text-align: center;
        }

        .message {
            font-size: 18px;
            text-align: center;
        }
    </style>
</head>

<body>
    <div class="flex-center position-ref full-height">
        <div class="code">
            500 </div>

        <div class="message" style="padding: 10px;">
            Server Error </div>
    </div>
</body>

</html>

```

### Servicios relacionados

### Ruta Flutter

- lib/src/Pages/Autenticator/auth\_view.dart

**DOCUMENTACION DEL SERVICIO:** [https://shalom-documentation.shalomcontrol.com/books/doc-servicios-app-shalom-familia/page/autenticacion-por-dos-1-generatecodeauthenticator](https://shalom-documentation.shalomcontrol.com/books/doc-servicios-app-shalom-familia/page/autenticacion-por-dos-1-generatecodeauthenticator)

</body></html>