@luizleon/sf.prefeiturasp.vuecomponents 0.0.63 → 0.0.64

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luizleon/sf.prefeiturasp.vuecomponents",
3
- "version": "0.0.63",
3
+ "version": "0.0.64",
4
4
  "type": "module",
5
5
  "main": "dist/sf.prefeiturasp.vuecomponents.umd.js",
6
6
  "module": "dist/sf.prefeiturasp.vuecomponents.es.js",
@@ -91,21 +91,19 @@ function ConfigAuthService(config?: KeycloakConfig): IAuthService {
91
91
  });
92
92
  };
93
93
 
94
- return {
94
+ AuthService = {
95
95
  Instance: keycloakInstance,
96
96
  User,
97
97
  Init,
98
98
  Logout,
99
99
  };
100
+
101
+ return AuthService;
100
102
  }
101
103
 
102
- /**
103
- * Serviço de autenticação.
104
- * O parâmetro config deve ser passado uma única vez, no início da aplicação.
105
- * @param config
106
- * @returns
107
- */
108
- const UseAuthService = (config?: KeycloakConfig) =>
104
+ const UseAuthService = () => AuthService;
105
+
106
+ const StartAuthService = (config: KeycloakConfig) =>
109
107
  ConfigAuthService(config);
110
108
 
111
- export { UseAuthService };
109
+ export { StartAuthService, UseAuthService };