TASK22269: group migrate remaining account/portal signed GET flows

This commit is contained in:
2026-03-25 14:06:18 +00:00
parent 85cc7d165e
commit 4e964ad1ad
7 changed files with 149 additions and 16 deletions
+5 -7
View File
@@ -1,7 +1,7 @@
import { BASE_URL } from "../core/env";
import { consoleLogger } from "../core/logger";
import { buildHashedQueryUrl } from "../clients/relayClient";
import { getJson, requestJson } from "../clients/endpointClient";
import { getSignedJson } from "../clients/signedRequestClient";
export const getPersonalAccount = (contactid) => {
return getJson(
@@ -78,13 +78,11 @@ export const getPortalLogin = async (emailAddress) => {
var queryUrl =
"/api/endpoint/getportallogin_api?emailAddress=" + emailAddress;
return getJson(BASE_URL + (await buildHashedQueryUrl(queryUrl))).catch(
(error) => {
consoleLogger(error);
return getSignedJson(queryUrl, { baseUrl: BASE_URL }).catch((error) => {
consoleLogger(error);
return JSON.stringify(error);
}
);
return JSON.stringify(error);
});
};
export const getPortalLoginProxy = async (emailAddress) => {
+6 -4
View File
@@ -1,8 +1,10 @@
import { BASE_URL } from "../core/env";
import { consoleLogger } from "../core/logger";
import { buildHashedQueryUrl } from "../clients/relayClient";
import { getJson, requestJson } from "../clients/endpointClient";
import { deleteSignedJson } from "../clients/signedRequestClient";
import {
deleteSignedJson,
buildSignedUrl
} from "../clients/signedRequestClient";
import {
buildFileQuery,
withBaseUrl,
@@ -207,7 +209,7 @@ export const sendCaseCompleteMessage = async (
inv
});
var signedQueryUrl = await buildHashedQueryUrl(hashQueryPath);
var signedQueryUrl = await buildSignedUrl(hashQueryPath);
queryUrl = appendQuerySuffix(
queryUrl,
@@ -260,7 +262,7 @@ export const sendRepCompleteMessage = async (
}
);
var queryUrl = await buildHashedQueryUrl(hashQueryPath);
var queryUrl = await buildSignedUrl(hashQueryPath);
var config = {
method: "get",