separate user from token

This commit is contained in:
Alex Holliday committed 2026-01-16 19:12:21 +00:00
1 parent 8747c38f40
commit af82dec2ad
6 files changed
+19 -28

No files matched your search

+2 -11
View File
@@ -347,17 +347,8 @@ class NetworkService {
return this.axiosInstance.get(`/monitors/certificate/${config.monitorId}`);
}
/**
* ************************************
* Registers a new user
* ************************************
*
* @async
* @param {Object} form - The form data for the new user to be registered.
* @returns {Promise<AxiosResponse>} The response from the axios POST request.
*/
async registerUser(form) {
return this.axiosInstance.post(`/auth/register`, form);
async registerUser(user, token) {
return this.axiosInstance.post(`/auth/register`, { user, token });
}
/**