diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js index 7ad32964..19400bc2 100644 --- a/src/constants/endpoints.js +++ b/src/constants/endpoints.js @@ -91,7 +91,7 @@ const endpoints = { url: "https://maps.googleapis.com/maps/api/js?key={apiKey}&libraries=places" }, ValidateClientTag: { - url: "/clientauth/api/v1/validateClientTag", + url: "/clientauth/api/v1/clientauth/validateClientTag", method: "GET", }, }; diff --git a/src/helpers/clientauth-helper.js b/src/helpers/clientauth-helper.js index c1b09433..ce26cf62 100644 --- a/src/helpers/clientauth-helper.js +++ b/src/helpers/clientauth-helper.js @@ -4,10 +4,17 @@ export function validateISSClientTag(clientTag) { const store = useMainStore() const clientName = store.issConfig.clientName; - const resp = store.validateClientTag(clientTag); - - console.log(resp); - + store.validateClientTag(clientTag) + .then( + (response) => { + // Success + console.log(response); + }, + (error) => { + // Error + console.log("error: " + error); + } + ); return true; }; diff --git a/src/store/index.js b/src/store/index.js index 376e0100..c327b3c7 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -893,10 +893,10 @@ export const useMainStore = defineStore({ }); }, - validateClientTag({ clientTag }) { + validateClientTag(clientTag) { return globalMethods.callHttpClient({ methods: endpoints.ValidateClientTag.method, - endpoint: `${endpoints.ValidateClientTag.url}/${"asdf"}`, + endpoint: `${endpoints.ValidateClientTag.url}/${clientTag}`, }); },