@ghentcdh/authentication-vue 3.0.0 → 3.0.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/index.d.ts +1 -0
- package/index.js +9 -1
- package/index.mjs +1907 -33
- package/lib/auth.const.d.ts +4 -0
- package/lib/keycloak.adapter.d.ts +2 -4
- package/lib/useAuthApi.d.ts +4 -0
- package/lib/utils.d.ts +1 -0
- package/package.json +2 -2
package/lib/auth.const.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { App } from 'vue';
|
|
|
2
2
|
import { KeycloakConfig } from './keycloak.adapter';
|
|
3
3
|
export declare const auth_symbol = "GHENTCDH_AUTHENTICATION";
|
|
4
4
|
export type AuthOptions = {
|
|
5
|
+
baseUrl: string;
|
|
5
6
|
skipAuthentication?: boolean;
|
|
6
7
|
keycloak: KeycloakConfig;
|
|
7
8
|
};
|
|
@@ -14,3 +15,6 @@ export interface Auth {
|
|
|
14
15
|
isAuthenticated: () => Promise<boolean>;
|
|
15
16
|
options: AuthOptions;
|
|
16
17
|
}
|
|
18
|
+
export declare const saveToken: (token: string) => void;
|
|
19
|
+
export declare const clearToken: () => void;
|
|
20
|
+
export declare const getToken: () => string;
|
|
@@ -6,9 +6,7 @@ export type KeycloakConfig = {
|
|
|
6
6
|
};
|
|
7
7
|
export declare class KeycloakAdapter extends Keycloak {
|
|
8
8
|
private constructor();
|
|
9
|
-
|
|
10
|
-
static
|
|
11
|
-
get userInfo(): any;
|
|
9
|
+
protected initialize(): Promise<void>;
|
|
10
|
+
static instance(config: KeycloakConfig): Promise<KeycloakAdapter>;
|
|
12
11
|
updateToken(): any;
|
|
13
|
-
get isAuthenticated(): any;
|
|
14
12
|
}
|
package/lib/utils.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ghentcdh/authentication-vue",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.2",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"module": "./index.mjs",
|
|
7
7
|
"types": "./index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"keycloak-js": "^26.2.2",
|
|
21
|
-
"vue": "3.5.
|
|
21
|
+
"vue": "3.5.39"
|
|
22
22
|
},
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|