FlowCrypt / flowcrypt-browser

FlowCrypt Browser extension for Chrome and Firefox
https://flowcrypt.com
Other
372 stars 48 forks source link

Error reports send unauthorized requests from content script #5715

Closed sosnovsky closed 1 month ago

sosnovsky commented 1 month ago

When sending error report from content script, idToken is undefined which causes 401 Unauthorized error on FES.

It happens because in doSendErrorToSharedTenantFes we try to parse acctEmail from current url, but there is no such url parameter in content script, need to fetch current acctEmail from storage.