const answer = await fetch('
https://www.instagram.com/accounts/login/ajax', {
method:'PUT',
headers : {
'Content-Type':'application/x-www-form-urlencoded',
'User-Agent': UserAgent,
'Accept-Language': 'en-US',
'X-Instagram-AJAX': 1,
'X-CSRFToken': csrfToken,
'X-Requested-With': 'XMLHttpRequest',
Referer:'
https://www.instagram.com',
},
body:JSON.stringify({form:{
username:'никнейм',
password:encryptPwd('пароль')
}})
})