separate user from token
This commit is contained in:
1 parent
8747c38f40
commit
af82dec2ad
6 files changed
+19
-28
No files matched your search
@@ -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 });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user