@das-fed/utils 7.1.0-qatar.9 → 7.1.0-seres.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/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +1043 -1043
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +753 -718
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +487 -470
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +486 -469
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +487 -470
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +856 -857
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +487 -470
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +495 -478
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +487 -470
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1019 -983
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1001 -966
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.d.ts +1 -1
- package/api-services/modules/justauth/index.js +654 -636
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +487 -470
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +487 -470
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +487 -470
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +535 -518
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +487 -470
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +753 -718
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +842 -839
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +483 -466
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +487 -470
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +487 -470
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +487 -470
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +486 -469
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/common-tools/platform-tools/index.js.gz +0 -0
- package/create-api-service/index.js +575 -558
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.d.ts +10 -16
- package/create-api-service/sso/index.js +701 -684
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/sso/utils.d.ts +6 -0
- package/create-api-service/thirdLogout/index.js +1857 -0
- package/create-api-service/thirdLogout/index.js.gz +0 -0
- package/create-api-service/thirdLogout/sso/utils.d.ts +8 -0
- package/create-api-service/thirdLogout/thirdLogout/index.d.ts +19 -0
- package/create-api-service/unauthorized-recovery/index.d.ts +36 -0
- package/create-api-service/unauthorized-recovery/index.js +16 -0
- package/curring-http/index.js.gz +0 -0
- package/curring-http/type.d.ts +6 -0
- package/directive/auth/index.js.gz +0 -0
- package/esm-map.json +11 -1
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/nextTiken/index.js.gz +0 -0
- package/package.json +4 -4
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js.gz +0 -0
- package/token-tools/index.d.ts +35 -0
- package/token-tools/index.js +59 -25
- package/token-tools/index.js.gz +0 -0
- package/use-low-code/index.js.gz +0 -0
- package/webSocket-service/index.js.gz +0 -0
|
Binary file
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { tokenStorage } from '@das-fed/utils/token-tools';
|
|
2
|
+
import { getLoginType, getQuery } from './utils';
|
|
2
3
|
|
|
3
4
|
declare const real_uri: any;
|
|
4
5
|
declare const getTokenParams: any;
|
|
5
6
|
declare const getTokenFromCode: () => unknown;
|
|
6
7
|
declare const getToken: (config: any) => unknown;
|
|
7
8
|
declare const login: (_params: any) => any;
|
|
9
|
+
/**
|
|
10
|
+
* 使用平台 refresh token 刷新访问令牌。
|
|
11
|
+
* 项目注册定制恢复处理器时不执行该默认刷新,真实 401 由项目恢复处理器接管。
|
|
12
|
+
* 未注册定制恢复时,刷新出现错误后执行标准退出登录。
|
|
13
|
+
* @param params OAuth 刷新所需的客户端参数
|
|
14
|
+
* @returns 刷新或项目恢复后的访问令牌
|
|
15
|
+
*/
|
|
8
16
|
declare const refreshToken: (params: any) => unknown;
|
|
9
|
-
|
|
10
|
-
getData: () => {
|
|
11
|
-
accessToken: any;
|
|
12
|
-
accessTokenExpiredAt: any;
|
|
13
|
-
refreshToken: any;
|
|
14
|
-
};
|
|
15
|
-
save: (data: {
|
|
16
|
-
accessToken: string | null;
|
|
17
|
-
accessTokenExpiredAt: number;
|
|
18
|
-
refreshToken: string | null;
|
|
19
|
-
info: any;
|
|
20
|
-
}) => void;
|
|
21
|
-
remove: () => void;
|
|
22
|
-
};
|
|
23
|
-
export { getTokenParams, getTokenFromCode, real_uri, getQuery, getToken, tokenStorage, login, refreshToken };
|
|
17
|
+
export { getTokenParams, getTokenFromCode, real_uri, getLoginType, getQuery, getToken, tokenStorage, login, refreshToken, };
|