Is it acceptable to send a fetch request with the Auth header not formatted as a string?
fetch('...', {
method: POST,
headers: {
Authorization: 'Bearer...',
'Content-type': 'application/json'
})
Prettier auto-removes my quotes on save (single- or double-quotes), and I can't find any setting to change this. I also can't find any source online that would suggest that the Authorization header doesn't need to be sent as a string. So then is this a feature or a bug? Thanks.