Last updated 6 months ago
const response = await fetch('/api/user/send_email_verification_code', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "email": "text", "type": "Register" }), }); const data = await response.json();
{ "error": "PERMISSION_DENIED", "errorMessage": "text" }