# vue-login-adds

> Paquete para el uso de inicio de sesion y validacion de documentacion por ciudadania digital

Latest version **3.0.5** (published 2025-10-23) · 0 weekly downloads

## Install

```sh
npm install vue-login-adds
pnpm add vue-login-adds
yarn add vue-login-adds
bun add vue-login-adds
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.5 |
| Published | 2025-10-23 |
| First published | 2023-07-26 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 262.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | fiscalia_bo, nisha_dev, micki.lahor, rmp11 |
| Keywords | vue, vue3, vue-login-adds |

## Links

- npm: https://www.npmjs.com/package/vue-login-adds
- npm.io page: https://npm.io/package/vue-login-adds

## Dependencies (1)

- [crypto-js](https://npm.io/package/crypto-js.md) ^4.2.0

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 3.0.5 (latest) — 2025-10-23
- 0.0.29-alpha.18 (next) — 2023-09-28
- 3.0.4 — 2025-04-11
- 3.0.3 — 2025-04-11
- 3.0.2 — 2024-11-11
- 3.0.1 — 2024-11-03
- 3.0.0 — 2024-10-29
- 1.0.4 — 2024-07-24
- 1.0.3 — 2024-07-24
- 1.0.2 — 2024-07-19
- 1.0.1 — 2024-07-18
- 1.0.0 — 2024-07-17
- 0.2.1 — 2024-06-19
- 0.2.0 — 2024-06-17
- 0.1.9 — 2024-01-05
- … 73 more at https://npm.io/package/vue-login-adds/versions

## README

## Descripcion

Paquete para el uso de inicio de sesion y validacion de documentacion por ciudadania digital

## Instalacion

Instalacion del paquete

```sh
npm i vue-login-adds
```

## Variables de Entorno

```env
VITE_API_BASE_URL="http://mi-pagina.com"
VITE_API_APLICATION="mp"
VITE_API_MS_AGETIC=https://ms-agetic.mp.gob.bo
VITE_API_MS_AGETIC_FRONT=https://agetic.mp.gob.bo
VITE_DEVELOPMENT_ENVIRONMENT="PROD | TEST | DEV"
VITE_API_LOCAL_FIRMATIC=https://localhost:4637
```

## configuracion de variables de Entorno

```typescript
import vueLoginAdds from 'vue-login-adds';

const app = createApp(App);
app.use(vueLoginAdds, {
  VITE_API_BASE_URL: import.meta.env.VITE_API_BASE_URL,
  VITE_API_APLICATION: import.meta.env.VITE_API_APLICATION,
  VITE_API_MS_AGETIC: import.meta.env.VITE_API_MS_AGETIC,
  VITE_API_MS_AGETIC_FRONT: import.meta.env.VITE_API_SERVER_REDIRECT,
  VITE_DEVELOPMENT_ENVIRONMENT: import.meta.env.VITE_DEVELOPMENT_ENVIRONMENT,
  VITE_API_LOCAL_FIRMATIC: import.meta.env.VITE_API_LOCAL_FIRMATIC,
});

app.mount('#app');
```

## Configuracion para Iniciar sesion, validar documentos, notificaciones

```html
<div style="height: 100vh; width: 100%;">
  <button @click="login">Iniciar Session</button>
  <button @click="validate">Validar Documento</button>
  <button @click="notification">Notificacion</button>
  <button @click="logout">cerrar Session</button>
</div>
```

```typescript
<script setup lang="ts">
  import {LoginDigital,ListenPopupDigitalCitizenchip,validateDocument, LogoutDigital,validateNotification} from 'vue-login-adds'
export default defineComponent({
  components:{
  },
  methods:{
    async login(){
      //openWindows:true:nueva ventana // false: popup
      //tokenMsSeguridad: token ms seguridad v2 // opcional
      //verifyFunctionary: verificar funcionario defaul:true // opcional
      console.log('>>>>',await LoginDigital({openWindows:false,verifyFunctionary:true,tokenMsSeguridad:"eyhdfgdf..."}))
    },
    async validate(){
      //openWindows:true:nueva ventana // false: popup
      console.log('>>>>',await validateDocument({openWindows:false,documentId:"64d504e1cf3b003bb2fb5c77",urlNotificationDocument:"https://.... (OPCIONAL)"}))
    },

    async notification(){
      await validateNotification({
        "delegado": "123456",
        "proceso": "CÓDIGO UNICO: 00000000000000",
        "objeto": "Acta",
        "asunto": "gfhfgdgfdsgdf",
        "tipoNotificado":1,
        "contenido": "A través...</b> con .... </b>",
        "tramite": 84,
        "autoridad": {
          "numeroDocumento": "000111222",
          "fechaNacimiento": "27/05/1994"
        },
        "notificado": {
          "numeroDocumento": "111222333",
          "fechaNacimiento": "16/10/1986"
        },
        "enlaces": [],
        "notificacionId": 57,
        "personaId": 876,
        "casoPersonaAbogadoID": 110,
      },
      'eyJhb.....'
      )
    },

    //true:nueva ventana // false: popup
    async logout(){
      console.log('>>>>',await LogoutDigital({openWindows:false}))
    },
  },
})
</script>
<style>

</style>

```

<!-- ## Configuracion para ver el TIMELINE DE LOS PROCESOS

![Imagen](/public/img1.png)

```html
<template>
  <div>
    <TimeLines />
  </div>
</template>
```

```typescript
<script setup lang="ts">
  import {TimeLines} from 'vue-login-adds'
</script>
```

<style>
@import url('/node_modules/vue-login-adds/dist/style.css');
</style> -->

---
_Source: https://npm.io/package/vue-login-adds · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
