Add sendInvitationToken
This commit is contained in:
1 parent
89e2a89124
commit
e1eceb5b8c
1 file changed
+18
@@ -530,6 +530,24 @@ class NetworkService {
|
|||||||
async requestInvitationToken(config) {
|
async requestInvitationToken(config) {
|
||||||
return this.axiosInstance.post(`/invite`, { email: config.email, role: config.role });
|
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,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ************************************
|
* ************************************
|
||||||
|
|||||||
Reference in new issue
Block a user