* Checks if an email exists in the system * @param {IEmailCheckData} data - Email data to verify * @returns {Promise } Response indicating email status * @throws {Error} Throws response data if the request fails
(data: IEmailCheckData)
| 45 | * @throws {Error} Throws response data if the request fails |
| 46 | */ |
| 47 | async emailCheck(data: IEmailCheckData): Promise<IEmailCheckResponse> { |
| 48 | return this.post("/auth/email-check/", data, { headers: {} }) |
| 49 | .then((response) => response?.data) |
| 50 | .catch((error) => { |
| 51 | throw error?.response?.data; |
| 52 | }); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Sends a password reset link to the specified email address |
no test coverage detected