@opengeoweb/authentication 9.31.0 → 9.32.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/authentication",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.32.1",
|
|
4
4
|
"description": "GeoWeb authentication library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"@opengeoweb/shared": "*",
|
|
14
14
|
"@opengeoweb/theme": "*",
|
|
15
15
|
"i18next": "^23.11.5",
|
|
16
|
-
"react-i18next": "^
|
|
17
|
-
"@opengeoweb/snackbar": "
|
|
16
|
+
"react-i18next": "^15.1.1",
|
|
17
|
+
"@opengeoweb/snackbar": "*",
|
|
18
18
|
"react-redux": "^8.1.3",
|
|
19
19
|
"@reduxjs/toolkit": "^1.9.7",
|
|
20
20
|
"@mui/material": "^6.1.1"
|
|
@@ -26,5 +26,6 @@
|
|
|
26
26
|
},
|
|
27
27
|
"module": "./index.esm.js",
|
|
28
28
|
"type": "module",
|
|
29
|
-
"main": "./index.esm.js"
|
|
29
|
+
"main": "./index.esm.js",
|
|
30
|
+
"types": "./index.esm.d.ts"
|
|
30
31
|
}
|
|
@@ -17,7 +17,7 @@ export declare const GEOWEB_ROLE_USER: Role;
|
|
|
17
17
|
export declare const makeCredentialsFromTokenResponse: (tokenResponse: AxiosResponse, authConfig?: ConfigType) => Credentials;
|
|
18
18
|
export declare const refreshAccessToken: ({ auth, config: { authTokenURL, authClientId, appURL }, timeout, }: CreateApiProps) => Promise<AxiosResponse>;
|
|
19
19
|
export declare const refreshAccessTokenAndSetAuthContext: ({ auth, onSetAuth, config, timeout, configURLS, onLogin, }: CreateApiProps & {
|
|
20
|
-
configURLS?: ConfigType
|
|
20
|
+
configURLS?: ConfigType;
|
|
21
21
|
}) => Promise<void>;
|
|
22
22
|
export declare const createApiInstance: ({ auth, config: { baseURL }, timeout, }: CreateApiProps) => AxiosInstance;
|
|
23
23
|
export declare const createNonAuthApiInstance: ({ config: { baseURL }, timeout, }: CreateApiProps) => AxiosInstance;
|
|
@@ -32,5 +32,5 @@ export declare const useApi: <TResponse extends {
|
|
|
32
32
|
data: infer TData;
|
|
33
33
|
}[] ? TData[] : TResponse extends {
|
|
34
34
|
data: infer TData_1;
|
|
35
|
-
} ? TData_1 : never>(apiCall?: (
|
|
35
|
+
} ? TData_1 : never>(apiCall?: (params?: ApiParams, id?: string) => Promise<TResponse>, params?: ApiParams, callbacks?: Callbacks<TResult>) => ApiHookProps<TResult>;
|
|
36
36
|
export {};
|
|
@@ -16,6 +16,8 @@ export interface SessionStorageProvider {
|
|
|
16
16
|
removeHasAuthenticated: () => void;
|
|
17
17
|
getCallbackUrl: () => string;
|
|
18
18
|
setCallbackUrl: (value: string) => void;
|
|
19
|
+
getLanguage: () => string;
|
|
20
|
+
setLanguage: (value: string) => void;
|
|
19
21
|
}
|
|
20
22
|
export declare enum SessionStorageKey {
|
|
21
23
|
CONFIG = "config",
|
|
@@ -23,7 +25,8 @@ export declare enum SessionStorageKey {
|
|
|
23
25
|
OAUTH_CODE_VERIFIER = "code_verifier",
|
|
24
26
|
OAUTH_CODE_CHALLENGE = "code_challenge",
|
|
25
27
|
HAS_AUTHENTICATED = "has_authenticated",
|
|
26
|
-
CALLBACK_URL = "callback_url"
|
|
28
|
+
CALLBACK_URL = "callback_url",
|
|
29
|
+
LANGUAGE = "en"
|
|
27
30
|
}
|
|
28
31
|
export declare const getSessionStorageProvider: () => SessionStorageProvider;
|
|
29
32
|
export declare const getConfig: () => ConfigType;
|