in frontend/src/backend/api.js [6:27]
async function getHeaders(includeAuth) {
const headers = {
"Content-Type": "application/json"
}
if (!includeAuth) {
return {
"Content-Type": "application/json"
}
}
let session = null
try {
session = await Auth.currentSession()
} catch (e) {
e == e
}
if (session) {
let authheader = session.getIdToken().jwtToken
headers['Authorization'] = authheader
}
return headers
}