@luizleon/sf.prefeiturasp.vuecomponents 4.1.1 → 4.1.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/dist/common/auth.d.ts +8 -0
- package/dist/http-client/apiClient.d.ts +1 -1
- package/dist/services/authService.d.ts +3 -14
- package/dist/sf.prefeiturasp.vuecomponents.cjs +24 -24
- package/dist/sf.prefeiturasp.vuecomponents.cjs.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +1468 -1514
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +24 -24
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/types/index.d.ts +1 -34
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as Keycloak, KeycloakInitOptions } from '../keycloak';
|
|
2
|
+
interface IAuthService {
|
|
3
|
+
Instance: Keycloak;
|
|
4
|
+
InitAsync: (initOptions?: KeycloakInitOptions) => Promise<boolean>;
|
|
5
|
+
isAuthenticated: boolean;
|
|
6
|
+
userinfo: Record<string, any> | null;
|
|
7
|
+
}
|
|
8
|
+
export { IAuthService };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IAuthService } from '../types';
|
|
2
1
|
import { KeycloakConfig, KeycloakInitOptions } from '../keycloak';
|
|
2
|
+
import { IAuthService } from '../common/auth';
|
|
3
3
|
declare const UseAuthService: () => {
|
|
4
4
|
Instance: {
|
|
5
5
|
authenticated?: boolean | undefined;
|
|
@@ -113,20 +113,9 @@ declare const UseAuthService: () => {
|
|
|
113
113
|
loadUserProfile: () => Promise<import('../keycloak').KeycloakProfile>;
|
|
114
114
|
loadUserInfo: () => Promise<{}>;
|
|
115
115
|
};
|
|
116
|
-
InitAsync: (initOptions?: KeycloakInitOptions | undefined) => Promise<
|
|
116
|
+
InitAsync: (initOptions?: KeycloakInitOptions | undefined) => Promise<boolean>;
|
|
117
117
|
isAuthenticated: boolean;
|
|
118
|
-
|
|
119
|
-
name: string;
|
|
120
|
-
email: string;
|
|
121
|
-
username: string;
|
|
122
|
-
roles: string[];
|
|
123
|
-
groups: string[];
|
|
124
|
-
emailVerified: boolean;
|
|
125
|
-
firstName: string;
|
|
126
|
-
lastName: string;
|
|
127
|
-
sub: string;
|
|
128
|
-
IsInRole: (role: string) => boolean;
|
|
129
|
-
} | undefined;
|
|
118
|
+
userinfo: Record<string, any> | null;
|
|
130
119
|
};
|
|
131
120
|
declare const StartAuthService: (config: KeycloakConfig) => IAuthService;
|
|
132
121
|
export { StartAuthService, UseAuthService };
|