fge-auth-component 0.3.7 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -35,47 +35,68 @@ import '../node_modules/fge-auth-component/dist/fge-auth-component.css';
35
35
  ...
36
36
 
37
37
  app.use(FgeAuthPlugin, {
38
- usePrimeDirectives?: boolean;
39
- usePrimeServices?: boolean;
40
- usePrimeVueLocale?: boolean;
41
- useYupLocale?: boolean;
38
+ usePrimeDirectives?: boolean; //true
39
+ usePrimeServices?: boolean; //false
40
+ usePrimeVueLocale?: boolean; //false
41
+ useYupLocale?: boolean; //false
42
42
  baseUrl: string; -> URL BASE DE LOS SERVICIOS DE SEGURIDAD - https://url
43
43
  aplicacion: string; -> Identificador de la aplicacion
44
44
  rrhhUrl: string; -> url de rrhh de donde salen las fotos https://url/api
45
45
  redirectLoginFunction: Function; -> Funcion que redirecciona al hacer login
46
46
  redirectLogoutFunction: Function; -> Funcion que redirecciona al hacer logout
47
+ API_SERVER_REDIRECT: string, -> URL DE REDIRECCION DE CIUDADANIA DIGITAL
47
48
  }
48
49
  );
49
50
 
50
51
  ```
51
52
 
52
- ## Publicar en npm
53
+ ## Componentes
53
54
 
54
- - Cambiar version
55
+ - FgeLoginComponent
55
56
 
56
- - npm run build
57
+ Añadir el componente dentro de una página en blanco.
57
58
 
58
- - npm login
59
+ ```
60
+ <FgeLoginComponent />
61
+ ```
59
62
 
60
- - npm publish
63
+ - FgeAuthMenuComponent
61
64
 
62
- ## Componentes
65
+ Menu que contiene la información del usuario logeado y los botones de ver perfil y cerrar sesión.
66
+ <FgeAuthMenuComponent />
63
67
 
64
- FgeLoginComponent
65
- FgeAuthMenuComponent
66
- FgePerfilSidebar
68
+ - useFgeAuthLoginStore
67
69
 
68
- - FgeLoginComponent
70
+ El store de pinia que contiene toda la información del usuario logueado
69
71
 
70
72
  ```
71
- <FgeLoginComponent>
72
- </FgeLoginComponent>
73
- ```
73
+ const store = useFgeAuthLoginStore();
74
+
75
+ // store.userState
76
+ interface{
77
+ token: string | undefined;
78
+ refreshToken: string | undefined;
79
+ user: any; -> información del usuario
80
+ funcionario: any; -> informacion del funcionario, si es que existe o undefined
81
+ isAuth: boolean;
82
+ binnacleId?: string | undefined; -> binnacleId de ciudadania digital
83
+ apps: string[];
84
+ roles: string[];
85
+ permisos: string[];
86
+ }
74
87
 
75
- <FgeAuthMenuComponent>
76
- </FgeAuthMenuComponent>
77
88
  ```
78
- <FgePerfilSidebar>
79
- </FgePerfilSidebar>
89
+
90
+ ## Publicar en npm
91
+
92
+ - Cambiar version
93
+
94
+ - npm run build
95
+
96
+ - npm login
97
+
98
+ - npm publish
99
+
80
100
  ```
101
+
81
102
  ```