@fctc/interface-logic 1.7.3 → 1.7.4
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/configs.d.mts +1 -4
- package/dist/configs.d.ts +1 -4
- package/dist/configs.js +9 -12
- package/dist/configs.mjs +9 -12
- package/dist/environment.d.mts +35 -54
- package/dist/environment.d.ts +35 -54
- package/dist/environment.js +2793 -2869
- package/dist/environment.mjs +2792 -2867
- package/dist/hooks.d.mts +7 -2
- package/dist/hooks.d.ts +7 -2
- package/dist/hooks.js +2733 -3010
- package/dist/hooks.mjs +2685 -2963
- package/dist/provider.js +19 -327
- package/dist/provider.mjs +19 -327
- package/dist/services.d.mts +2 -1
- package/dist/services.d.ts +2 -1
- package/dist/services.js +2560 -2853
- package/dist/services.mjs +2560 -2853
- package/dist/store.d.mts +224 -28
- package/dist/store.d.ts +224 -28
- package/dist/store.js +20 -6
- package/dist/store.mjs +20 -6
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{view-type-BGJfDe73.d.mts → view-type-D8ukwj_2.d.mts} +1 -1
- package/dist/{view-type-BGJfDe73.d.ts → view-type-D8ukwj_2.d.ts} +1 -1
- package/package.json +81 -81
package/dist/provider.mjs
CHANGED
|
@@ -43,11 +43,25 @@ var breadcrums_slice_default = breadcrumbsSlice.reducer;
|
|
|
43
43
|
import { createSlice as createSlice2 } from "@reduxjs/toolkit";
|
|
44
44
|
var initialState2 = {
|
|
45
45
|
baseUrl: "",
|
|
46
|
-
requests: null,
|
|
47
46
|
companies: [],
|
|
48
47
|
user: {},
|
|
49
|
-
|
|
48
|
+
db: "",
|
|
49
|
+
refreshTokenEndpoint: "",
|
|
50
|
+
config: {
|
|
51
|
+
grantType: "",
|
|
52
|
+
clientId: "",
|
|
53
|
+
clientSecret: "",
|
|
54
|
+
redirectUri: ""
|
|
55
|
+
},
|
|
50
56
|
envFile: null,
|
|
57
|
+
requests: {
|
|
58
|
+
get: async (url, headers) => ({}),
|
|
59
|
+
post: async (url, body, headers) => ({}),
|
|
60
|
+
post_excel: async (url, body, headers) => ({}),
|
|
61
|
+
put: async (url, body, headers) => ({}),
|
|
62
|
+
patch: async (url, body) => ({}),
|
|
63
|
+
delete: async (url, body) => ({})
|
|
64
|
+
},
|
|
51
65
|
defaultCompany: {
|
|
52
66
|
id: null,
|
|
53
67
|
logo: "",
|
|
@@ -2763,331 +2777,11 @@ function matchDomain(record, domain) {
|
|
|
2763
2777
|
|
|
2764
2778
|
// src/utils/function.ts
|
|
2765
2779
|
import { useEffect, useState } from "react";
|
|
2766
|
-
var updateTokenParamInOriginalRequest = (originalRequest, newAccessToken) => {
|
|
2767
|
-
if (!originalRequest.data) return originalRequest.data;
|
|
2768
|
-
if (typeof originalRequest.data === "string") {
|
|
2769
|
-
try {
|
|
2770
|
-
const parsedData = JSON.parse(originalRequest.data);
|
|
2771
|
-
if (parsedData.with_context && typeof parsedData.with_context === "object") {
|
|
2772
|
-
parsedData.with_context.token = newAccessToken;
|
|
2773
|
-
}
|
|
2774
|
-
return JSON.stringify(parsedData);
|
|
2775
|
-
} catch (e) {
|
|
2776
|
-
console.warn("Failed to parse originalRequest.data", e);
|
|
2777
|
-
return originalRequest.data;
|
|
2778
|
-
}
|
|
2779
|
-
}
|
|
2780
|
-
if (typeof originalRequest.data === "object" && originalRequest.data.with_context) {
|
|
2781
|
-
originalRequest.data.with_context.token = newAccessToken;
|
|
2782
|
-
}
|
|
2783
|
-
return originalRequest.data;
|
|
2784
|
-
};
|
|
2785
|
-
|
|
2786
|
-
// src/utils/storage/local-storage.ts
|
|
2787
|
-
var localStorageUtils = () => {
|
|
2788
|
-
const setToken = async (access_token) => {
|
|
2789
|
-
localStorage.setItem("accessToken", access_token);
|
|
2790
|
-
};
|
|
2791
|
-
const setRefreshToken = async (refresh_token) => {
|
|
2792
|
-
localStorage.setItem("refreshToken", refresh_token);
|
|
2793
|
-
};
|
|
2794
|
-
const getAccessToken = async () => {
|
|
2795
|
-
return localStorage.getItem("accessToken");
|
|
2796
|
-
};
|
|
2797
|
-
const getRefreshToken = async () => {
|
|
2798
|
-
return localStorage.getItem("refreshToken");
|
|
2799
|
-
};
|
|
2800
|
-
const clearToken = async () => {
|
|
2801
|
-
localStorage.removeItem("accessToken");
|
|
2802
|
-
localStorage.removeItem("refreshToken");
|
|
2803
|
-
};
|
|
2804
|
-
return {
|
|
2805
|
-
setToken,
|
|
2806
|
-
setRefreshToken,
|
|
2807
|
-
getAccessToken,
|
|
2808
|
-
getRefreshToken,
|
|
2809
|
-
clearToken
|
|
2810
|
-
};
|
|
2811
|
-
};
|
|
2812
|
-
|
|
2813
|
-
// src/utils/storage/session-storage.ts
|
|
2814
|
-
var sessionStorageUtils = () => {
|
|
2815
|
-
const getBrowserSession = async () => {
|
|
2816
|
-
return sessionStorage.getItem("browserSession");
|
|
2817
|
-
};
|
|
2818
|
-
return {
|
|
2819
|
-
getBrowserSession
|
|
2820
|
-
};
|
|
2821
|
-
};
|
|
2822
|
-
|
|
2823
|
-
// src/configs/axios-client.ts
|
|
2824
|
-
var axiosClient = {
|
|
2825
|
-
init(config) {
|
|
2826
|
-
const localStorage2 = config.localStorageUtils ?? localStorageUtils();
|
|
2827
|
-
const sessionStorage2 = config.sessionStorageUtils ?? sessionStorageUtils();
|
|
2828
|
-
const db = config.db;
|
|
2829
|
-
let isRefreshing = false;
|
|
2830
|
-
let failedQueue = [];
|
|
2831
|
-
const processQueue = (error, token = null) => {
|
|
2832
|
-
failedQueue?.forEach((prom) => {
|
|
2833
|
-
if (error) {
|
|
2834
|
-
prom.reject(error);
|
|
2835
|
-
} else {
|
|
2836
|
-
prom.resolve(token);
|
|
2837
|
-
}
|
|
2838
|
-
});
|
|
2839
|
-
failedQueue = [];
|
|
2840
|
-
};
|
|
2841
|
-
const instance = axios.create({
|
|
2842
|
-
adapter: axios.defaults.adapter,
|
|
2843
|
-
baseURL: config.baseUrl,
|
|
2844
|
-
timeout: 5e4,
|
|
2845
|
-
paramsSerializer: (params) => new URLSearchParams(params).toString()
|
|
2846
|
-
});
|
|
2847
|
-
instance.interceptors.request.use(
|
|
2848
|
-
async (config2) => {
|
|
2849
|
-
const useRefreshToken = config2.useRefreshToken;
|
|
2850
|
-
const token = useRefreshToken ? await localStorage2.getRefreshToken() : await localStorage2.getAccessToken();
|
|
2851
|
-
if (token) {
|
|
2852
|
-
config2.headers["Authorization"] = "Bearer " + token;
|
|
2853
|
-
}
|
|
2854
|
-
return config2;
|
|
2855
|
-
},
|
|
2856
|
-
(error) => {
|
|
2857
|
-
Promise.reject(error);
|
|
2858
|
-
}
|
|
2859
|
-
);
|
|
2860
|
-
instance.interceptors.response.use(
|
|
2861
|
-
(response) => {
|
|
2862
|
-
return handleResponse(response);
|
|
2863
|
-
},
|
|
2864
|
-
async (error) => {
|
|
2865
|
-
const handleError3 = async (error2) => {
|
|
2866
|
-
if (!error2.response) {
|
|
2867
|
-
return error2;
|
|
2868
|
-
}
|
|
2869
|
-
const { data } = error2.response;
|
|
2870
|
-
if (data && data.code === 400 && ["invalid_grant"].includes(data.data?.error)) {
|
|
2871
|
-
await clearAuthToken();
|
|
2872
|
-
}
|
|
2873
|
-
return data;
|
|
2874
|
-
};
|
|
2875
|
-
const originalRequest = error.config;
|
|
2876
|
-
if ((error.response?.status === 403 || error.response?.status === 401 || error.response?.status === 404) && ["TOKEN_EXPIRED", "AUTHEN_FAIL", 401, "ERR_2FA_006"].includes(
|
|
2877
|
-
error.response.data.code
|
|
2878
|
-
)) {
|
|
2879
|
-
if (isRefreshing) {
|
|
2880
|
-
return new Promise(function(resolve, reject) {
|
|
2881
|
-
failedQueue.push({ resolve, reject });
|
|
2882
|
-
}).then((token) => {
|
|
2883
|
-
originalRequest.headers["Authorization"] = "Bearer " + token;
|
|
2884
|
-
originalRequest.data = updateTokenParamInOriginalRequest(
|
|
2885
|
-
originalRequest,
|
|
2886
|
-
token
|
|
2887
|
-
);
|
|
2888
|
-
return instance.request(originalRequest);
|
|
2889
|
-
}).catch(async (err) => {
|
|
2890
|
-
if ((err.response?.status === 400 || err.response?.status === 401) && ["invalid_grant"].includes(err.response.data.error)) {
|
|
2891
|
-
await clearAuthToken();
|
|
2892
|
-
}
|
|
2893
|
-
});
|
|
2894
|
-
}
|
|
2895
|
-
const browserSession = await sessionStorage2.getBrowserSession();
|
|
2896
|
-
const refreshToken = await localStorage2.getRefreshToken();
|
|
2897
|
-
const accessTokenExp = await localStorage2.getAccessToken();
|
|
2898
|
-
isRefreshing = true;
|
|
2899
|
-
if (!refreshToken && (!browserSession || browserSession == "unActive")) {
|
|
2900
|
-
await clearAuthToken();
|
|
2901
|
-
} else {
|
|
2902
|
-
const payload = Object.fromEntries(
|
|
2903
|
-
Object.entries({
|
|
2904
|
-
refresh_token: refreshToken,
|
|
2905
|
-
grant_type: "refresh_token",
|
|
2906
|
-
client_id: config.config.clientId,
|
|
2907
|
-
client_secret: config.config.clientSecret
|
|
2908
|
-
}).filter(([_, value]) => !!value)
|
|
2909
|
-
);
|
|
2910
|
-
return new Promise(function(resolve) {
|
|
2911
|
-
axios.post(
|
|
2912
|
-
`${config.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
|
|
2913
|
-
payload,
|
|
2914
|
-
{
|
|
2915
|
-
headers: {
|
|
2916
|
-
"Content-Type": config.refreshTokenEndpoint ? "application/x-www-form-urlencoded" : "multipart/form-data",
|
|
2917
|
-
Authorization: `Bearer ${accessTokenExp}`
|
|
2918
|
-
}
|
|
2919
|
-
}
|
|
2920
|
-
).then(async (res) => {
|
|
2921
|
-
const data = res.data;
|
|
2922
|
-
await localStorage2.setToken(data.access_token);
|
|
2923
|
-
await localStorage2.setRefreshToken(data.refresh_token);
|
|
2924
|
-
axios.defaults.headers.common["Authorization"] = "Bearer " + data.access_token;
|
|
2925
|
-
originalRequest.headers["Authorization"] = "Bearer " + data.access_token;
|
|
2926
|
-
originalRequest.data = updateTokenParamInOriginalRequest(
|
|
2927
|
-
originalRequest,
|
|
2928
|
-
data.access_token
|
|
2929
|
-
);
|
|
2930
|
-
processQueue(null, data.access_token);
|
|
2931
|
-
resolve(instance.request(originalRequest));
|
|
2932
|
-
}).catch(async (err) => {
|
|
2933
|
-
if (err && (err?.error_code === "AUTHEN_FAIL" || err?.error_code === "TOKEN_EXPIRED" || err?.error_code === "TOKEN_INCORRECT" || err?.code === "ERR_BAD_REQUEST") || err?.error_code === "ERR_2FA_006") {
|
|
2934
|
-
await clearAuthToken();
|
|
2935
|
-
}
|
|
2936
|
-
if (err && err.response) {
|
|
2937
|
-
const { error_code } = err.response?.data || {};
|
|
2938
|
-
if (error_code === "AUTHEN_FAIL") {
|
|
2939
|
-
await clearAuthToken();
|
|
2940
|
-
}
|
|
2941
|
-
}
|
|
2942
|
-
processQueue(err, null);
|
|
2943
|
-
}).finally(() => {
|
|
2944
|
-
isRefreshing = false;
|
|
2945
|
-
});
|
|
2946
|
-
});
|
|
2947
|
-
}
|
|
2948
|
-
}
|
|
2949
|
-
return Promise.reject(await handleError3(error));
|
|
2950
|
-
}
|
|
2951
|
-
);
|
|
2952
|
-
const handleResponse = (res) => {
|
|
2953
|
-
if (res && res.data) {
|
|
2954
|
-
return res.data;
|
|
2955
|
-
}
|
|
2956
|
-
return res;
|
|
2957
|
-
};
|
|
2958
|
-
const handleError2 = (error) => {
|
|
2959
|
-
if (error.isAxiosError && error.code === "ECONNABORTED") {
|
|
2960
|
-
console.error("Request Timeout Error:", error);
|
|
2961
|
-
return "Request Timeout Error";
|
|
2962
|
-
} else if (error.isAxiosError && !error.response) {
|
|
2963
|
-
console.error("Network Error:", error);
|
|
2964
|
-
return "Network Error";
|
|
2965
|
-
} else {
|
|
2966
|
-
console.error("Other Error:", error?.response);
|
|
2967
|
-
const errorMessage = error?.response?.data?.message || "An error occurred";
|
|
2968
|
-
return { message: errorMessage, status: error?.response?.status };
|
|
2969
|
-
}
|
|
2970
|
-
};
|
|
2971
|
-
const clearAuthToken = async () => {
|
|
2972
|
-
await localStorage2.clearToken();
|
|
2973
|
-
if (typeof window !== "undefined") {
|
|
2974
|
-
window.location.href = `/login`;
|
|
2975
|
-
}
|
|
2976
|
-
};
|
|
2977
|
-
function formatUrl(url, db2) {
|
|
2978
|
-
return url + (db2 ? "?db=" + db2 : "");
|
|
2979
|
-
}
|
|
2980
|
-
const responseBody = (response) => response;
|
|
2981
|
-
const requests = {
|
|
2982
|
-
get: (url, headers) => instance.get(formatUrl(url, db), headers).then(responseBody),
|
|
2983
|
-
post: (url, body, headers) => instance.post(formatUrl(url, db), body, headers).then(responseBody),
|
|
2984
|
-
post_excel: (url, body, headers) => instance.post(formatUrl(url, db), body, {
|
|
2985
|
-
responseType: "arraybuffer",
|
|
2986
|
-
headers: {
|
|
2987
|
-
"Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
|
|
2988
|
-
Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
2989
|
-
}
|
|
2990
|
-
}).then(responseBody),
|
|
2991
|
-
put: (url, body, headers) => instance.put(formatUrl(url, db), body, headers).then(responseBody),
|
|
2992
|
-
patch: (url, body) => instance.patch(formatUrl(url, db), body).then(responseBody),
|
|
2993
|
-
delete: (url, body) => instance.delete(formatUrl(url, db), body).then(responseBody)
|
|
2994
|
-
};
|
|
2995
|
-
return requests;
|
|
2996
|
-
}
|
|
2997
|
-
};
|
|
2998
2780
|
|
|
2999
2781
|
// src/environment/EnvStore.ts
|
|
3000
|
-
var EnvStore = class _EnvStore {
|
|
3001
|
-
static instance = null;
|
|
3002
|
-
envStore;
|
|
3003
|
-
baseUrl;
|
|
3004
|
-
requests;
|
|
3005
|
-
context;
|
|
3006
|
-
defaultCompany;
|
|
3007
|
-
config;
|
|
3008
|
-
companies;
|
|
3009
|
-
user;
|
|
3010
|
-
db;
|
|
3011
|
-
localStorageUtils;
|
|
3012
|
-
sessionStorageUtils;
|
|
3013
|
-
refreshTokenEndpoint;
|
|
3014
|
-
constructor(envStore2, localStorageUtils2, sessionStorageUtils2) {
|
|
3015
|
-
this.envStore = envStore2;
|
|
3016
|
-
this.localStorageUtils = localStorageUtils2;
|
|
3017
|
-
this.sessionStorageUtils = sessionStorageUtils2;
|
|
3018
|
-
this.setup();
|
|
3019
|
-
}
|
|
3020
|
-
static getInstance(envStore2, localStorageUtils2, sessionStorageUtils2) {
|
|
3021
|
-
if (!_EnvStore.instance) {
|
|
3022
|
-
_EnvStore.instance = new _EnvStore(
|
|
3023
|
-
envStore2,
|
|
3024
|
-
localStorageUtils2,
|
|
3025
|
-
sessionStorageUtils2
|
|
3026
|
-
);
|
|
3027
|
-
}
|
|
3028
|
-
return _EnvStore.instance;
|
|
3029
|
-
}
|
|
3030
|
-
setup() {
|
|
3031
|
-
const env = this.envStore.getState().env;
|
|
3032
|
-
this.baseUrl = env?.baseUrl;
|
|
3033
|
-
this.requests = env?.requests;
|
|
3034
|
-
this.context = env?.context;
|
|
3035
|
-
this.defaultCompany = env?.defaultCompany;
|
|
3036
|
-
this.config = env?.config;
|
|
3037
|
-
this.companies = env?.companies || [];
|
|
3038
|
-
this.user = env?.user;
|
|
3039
|
-
this.db = env?.db;
|
|
3040
|
-
this.refreshTokenEndpoint = env?.refreshTokenEndpoint;
|
|
3041
|
-
console.log("Env setup:", this);
|
|
3042
|
-
}
|
|
3043
|
-
setupEnv(envConfig) {
|
|
3044
|
-
const dispatch = this.envStore.dispatch;
|
|
3045
|
-
const env = {
|
|
3046
|
-
...envConfig,
|
|
3047
|
-
localStorageUtils: this.localStorageUtils,
|
|
3048
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
3049
|
-
};
|
|
3050
|
-
const requests = axiosClient.init(env);
|
|
3051
|
-
dispatch(setEnv({ ...env, requests }));
|
|
3052
|
-
this.setup();
|
|
3053
|
-
}
|
|
3054
|
-
setUid(uid) {
|
|
3055
|
-
const dispatch = this.envStore.dispatch;
|
|
3056
|
-
dispatch(setUid(uid));
|
|
3057
|
-
this.setup();
|
|
3058
|
-
}
|
|
3059
|
-
setLang(lang) {
|
|
3060
|
-
const dispatch = this.envStore.dispatch;
|
|
3061
|
-
dispatch(setLang(lang));
|
|
3062
|
-
this.setup();
|
|
3063
|
-
}
|
|
3064
|
-
setAllowCompanies(allowCompanies) {
|
|
3065
|
-
const dispatch = this.envStore.dispatch;
|
|
3066
|
-
dispatch(setAllowCompanies(allowCompanies));
|
|
3067
|
-
this.setup();
|
|
3068
|
-
}
|
|
3069
|
-
setCompanies(companies) {
|
|
3070
|
-
const dispatch = this.envStore.dispatch;
|
|
3071
|
-
dispatch(setCompanies(companies));
|
|
3072
|
-
this.setup();
|
|
3073
|
-
}
|
|
3074
|
-
setDefaultCompany(company) {
|
|
3075
|
-
const dispatch = this.envStore.dispatch;
|
|
3076
|
-
dispatch(setDefaultCompany(company));
|
|
3077
|
-
this.setup();
|
|
3078
|
-
}
|
|
3079
|
-
setUserInfo(userInfo) {
|
|
3080
|
-
const dispatch = this.envStore.dispatch;
|
|
3081
|
-
dispatch(setUser(userInfo));
|
|
3082
|
-
this.setup();
|
|
3083
|
-
}
|
|
3084
|
-
};
|
|
3085
2782
|
function getEnv() {
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
throw new Error("EnvStore has not been initialized \u2014 call initEnv() first");
|
|
3089
|
-
}
|
|
3090
|
-
return instance;
|
|
2783
|
+
console.log("getEnv", envStore.getState().env);
|
|
2784
|
+
return envStore.getState().env;
|
|
3091
2785
|
}
|
|
3092
2786
|
|
|
3093
2787
|
// src/services/view-service/index.ts
|
|
@@ -3351,8 +3045,7 @@ var ViewService = {
|
|
|
3351
3045
|
},
|
|
3352
3046
|
async getVersion() {
|
|
3353
3047
|
const env = getEnv();
|
|
3354
|
-
|
|
3355
|
-
return env?.requests?.get("", {
|
|
3048
|
+
return env?.requests.get("", {
|
|
3356
3049
|
headers: {
|
|
3357
3050
|
"Content-Type": "application/json"
|
|
3358
3051
|
}
|
|
@@ -3549,7 +3242,6 @@ var VersionGate = ({ children }) => {
|
|
|
3549
3242
|
};
|
|
3550
3243
|
const validateVersion = async () => {
|
|
3551
3244
|
const serverVersion = await view_service_default.getVersion();
|
|
3552
|
-
console.log("serverVersion", serverVersion);
|
|
3553
3245
|
const cached = localStorage.getItem("__api_version__");
|
|
3554
3246
|
if (cached !== serverVersion?.api_version) {
|
|
3555
3247
|
clearVersion();
|
package/dist/services.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams,
|
|
1
|
+
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, c as GetDetailParams, d as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, a as GetViewParams, G as GetSelectionType } from './view-type-D8ukwj_2.mjs';
|
|
2
2
|
|
|
3
3
|
declare const ActionService: {
|
|
4
4
|
loadAction({ idAction, context, }: {
|
|
@@ -51,6 +51,7 @@ declare const AuthService: {
|
|
|
51
51
|
}): Promise<any>;
|
|
52
52
|
updatePassword(data: UpdatePasswordRequest, token: string | null): Promise<any>;
|
|
53
53
|
isValidToken(token: string | null): Promise<any>;
|
|
54
|
+
isValidActionToken(actionToken: string | null, path: string): Promise<any>;
|
|
54
55
|
loginSocial({ db, state, access_token, }: {
|
|
55
56
|
db: string;
|
|
56
57
|
state: object;
|
package/dist/services.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams,
|
|
1
|
+
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, c as GetDetailParams, d as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, a as GetViewParams, G as GetSelectionType } from './view-type-D8ukwj_2.js';
|
|
2
2
|
|
|
3
3
|
declare const ActionService: {
|
|
4
4
|
loadAction({ idAction, context, }: {
|
|
@@ -51,6 +51,7 @@ declare const AuthService: {
|
|
|
51
51
|
}): Promise<any>;
|
|
52
52
|
updatePassword(data: UpdatePasswordRequest, token: string | null): Promise<any>;
|
|
53
53
|
isValidToken(token: string | null): Promise<any>;
|
|
54
|
+
isValidActionToken(actionToken: string | null, path: string): Promise<any>;
|
|
54
55
|
loginSocial({ db, state, access_token, }: {
|
|
55
56
|
db: string;
|
|
56
57
|
state: object;
|