vue-login-adds
Paquete para el uso de inicio de sesion y validacion de documentacion por ciudadania digital
5,524
| Install | |
|---|---|
npm install vue-login-adds |
|
| Latest Version: | 3.0.5 |
| Vue: | 3 |
| Last Updated: | Oct 23, 2025 |
| Links: | npm |
Maintainer: fiscalia_bo
Descripcion
Paquete para el uso de inicio de sesion y validacion de documentacion por ciudadania digital
Instalacion
Instalacion del paquete
npm i vue-login-adds
Variables de Entorno
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
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
<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>
<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>
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 3.0.5 | ^3.0.0 | ||
| 3.0.4 | ^3.0.0 | ||
| 3.0.3 | ^3.0.0 | ||
| 3.0.2 | ^3.0.0 | ||
| 3.0.1 | ^3.0.0 | ||
| 3.0.0 | ^3.0.0 | ||
| 1.0.4 | ^3.0.0 | ||
| 1.0.3 | ^3.0.0 | ||
| 1.0.2 | ^3.0.0 | ||
| 1.0.1 | ^3.0.0 | ||
| 1.0.0 | ^3.0.0 | ||
| 0.2.1 | ^3.0.0 | ||
| 0.2.0 | ^3.0.0 | ||
| 0.1.9 | ^3.2.47 | ||
| 0.1.8 | ^3.2.47 | ||
| 0.1.7 | ^3.2.47 | ||
| 0.1.6 | ^3.2.47 | ||
| 0.1.5 | ^3.2.47 | ||
| 0.1.4 | ^3.2.47 | ||
| 0.1.3 | ^3.2.47 | ||
| 0.1.2 | ^3.2.47 | ||
| 0.1.1 | ^3.2.47 | ||
| 0.0.53 | ^3.2.47 | ||
| 0.0.52 | ^3.2.47 | ||
| 0.0.51 | ^3.2.47 | ||
| 0.0.50 | ^3.2.47 | ||
| 0.0.49 | ^3.2.47 | ||
| 0.0.48 | ^3.2.47 | ||
| 0.0.47 | ^3.2.47 | ||
| 0.0.46 | ^3.2.47 |
Showing the latest 30 of 67. See every release on npm
Pre-releases (21)
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.29-alpha.20 | ^3.2.47 | ||
| 0.0.29-alpha.19 | ^3.2.47 | ||
| 0.0.29-alpha.18 | ^3.2.47 | ||
| 0.0.29-alpha.17 | ^3.2.47 | ||
| 0.0.28-alpha.16 | ^3.2.47 | ||
| 0.0.28-alpha.15 | ^3.2.47 | ||
| 0.0.28-alpha.14 | ^3.2.47 | ||
| 0.0.28-alpha.13 | ^3.2.47 | ||
| 0.0.28-alpha.12 | ^3.2.47 | ||
| 0.0.28-alpha.11 | ^3.2.47 | ||
| 0.0.28-alpha.10 | ^3.2.47 | ||
| 0.0.25-alpha.9 | ^3.2.47 | ||
| 0.0.24-alpha.8 | ^3.2.47 | ||
| 0.0.24-alpha.7 | ^3.2.47 | ||
| 0.0.24-alpha.6 | ^3.2.47 | ||
| 0.0.24-alpha.5 | ^3.2.47 | ||
| 0.0.24-alpha.4 | ^3.2.47 | ||
| 0.0.23-alpha.3 | ^3.2.47 | ||
| 0.0.23-alpha.2 | ^3.2.47 | ||
| 0.0.23-alpha.1 | ^3.2.47 | ||
| 0.0.22-alpha.0 | ^3.2.47 |