Add sendInvitationToken

This commit is contained in:
Alex Holliday
2025-03-26 15:28:48 -07:00
parent 89e2a89124
commit e1eceb5b8c
+18
View File
@@ -530,6 +530,24 @@ class NetworkService {
async requestInvitationToken(config) {
return this.axiosInstance.post(`/invite`, { email: config.email, role: config.role });
}
/**
* ************************************
* Sends an invitation token
* ************************************
*
* @async
* @param {Object} config - The configuration object.
* @param {string} config.email - The email of the user to be invited.
* @param {string} config.role - The role of the user to be invited.
* @returns {Promise<AxiosResponse>} The response from the axios POST request.
*
*/
async sendInvitationToken(config) {
return this.axiosInstance.post(`/invite/send`, {
email: config.email,
role: config.role,
});
}
/**
* ************************************