let user = { email: 'test@mail.ru', password: 'Test123321' }; let response = await fetch('http://cff1110e.ngrok.io/api/auth/login', { method: 'POST', headers: { 'Content-Type': 'application/json;', 'Accept': 'application/json' }, body: JSON.stringify(user) }); let result = await response.json(); console.log(result)