(url)
| 2917 | }; |
| 2918 | |
| 2919 | export const convertPdfArrayBuffer = async (url) => { |
| 2920 | try { |
| 2921 | const response = await fetch(url); |
| 2922 | // Check if the response was successful (status 200) |
| 2923 | if (!response.ok) { |
| 2924 | return "Error"; |
| 2925 | } |
| 2926 | // Convert the response to ArrayBuffer |
| 2927 | const arrayBuffer = await response.arrayBuffer(); |
| 2928 | return arrayBuffer; |
| 2929 | } catch (error) { |
| 2930 | console.error("Error fetching data:", error); |
| 2931 | return "Error"; |
| 2932 | } |
| 2933 | }; |
| 2934 | //`handleSendOTP` function is used to send otp on user's email using `SendOTPMailV1` cloud function |
| 2935 | export const handleSendOTP = async (email) => { |
| 2936 | try { |
no outgoing calls
no test coverage detected