const response = await fetch('http://localhost/v2/console/authentication', {
method: 'PUT',
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"user": {
"ID": 0,
"user_email": "name@gmail.com",
"user_login": "text",
"display_name": "text"
},
"jwt": {
"token": "text",
"token_expires": 0
},
"feature_flags": {
"isVendor": false,
"isWhitelabeled": false
}
}),
});
const data = await response.json();