fge-auth-component 0.4.0 → 0.4.2

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
@@ -52,10 +52,8 @@ app.use(FgeAuthPlugin, {
52
52
 
53
53
  ## Componentes
54
54
 
55
- FgeLoginComponent
56
- FgeAuthMenuComponent
57
-
58
55
  - FgeLoginComponent
56
+
59
57
  Añadir el componente dentro de una página en blanco.
60
58
 
61
59
  ```
@@ -63,9 +61,30 @@ FgeAuthMenuComponent
63
61
  ```
64
62
 
65
63
  - FgeAuthMenuComponent
64
+
66
65
  Menu que contiene la información del usuario logeado y los botones de ver perfil y cerrar sesión.
67
66
  <FgeAuthMenuComponent />
68
67
 
68
+ - useFgeAuthLoginStore
69
+
70
+ El store de pinia que contiene toda la información del usuario logueado
71
+
72
+ ```
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
+ }
87
+
69
88
  ```
70
89
 
71
90
  ## Publicar en npm
@@ -77,4 +96,7 @@ FgeAuthMenuComponent
77
96
  - npm login
78
97
 
79
98
  - npm publish
99
+
100
+ ```
101
+
80
102
  ```