handle jwt errors

This commit is contained in:
Alex Holliday committed 2025-03-21 16:24:27 -07:00
1 parent c2b57d1df7
commit f4ec292b31
4 files changed
+41 -12

No files matched your search

+13 -9
View File
@@ -669,7 +669,7 @@ class NetworkService {
});
}
/**
/**
* ************************************
* Test a notification integration
* ************************************
@@ -681,14 +681,18 @@ class NetworkService {
* @returns {Promise<AxiosResponse>} The response from the axios POST request.
*/
async testNotification(config) {
return this.axiosInstance.post('/notifications/test-webhook', {
platform: config.platform,
...config.payload
}, {
headers: {
"Content-Type": "application/json",
},
});
return this.axiosInstance.post(
"/notifications/test-webhook",
{
platform: config.platform,
...config.payload,
},
{
headers: {
"Content-Type": "application/json",
},
}
);
}
/**