Types for headers
nichoth opened this issue · comments
nichoth commented
Gabriel Moraes commented
@nichoth try this:
const authRes = await ky.get(`https://my-api/${apiMethodName}`, {
headers: {
Authorization: 'Basic ' + btoa(kyId + ':' + password)
}
})
nichoth commented
It works!