Error 401 in our JIRA App while we're actually authenticated

I don’t have an answer directly for your question, but I wanted to call your attention to this topic: Accessing cloud REST api via generated JWT token. It sounds similar and thought it might be worth you reading through to see if anything in there helps unblock you.