Adds statusCode === -1 to check on GraphError to get reauth for users that token expired #107
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
The error we are getting back when a user's token needs refreshed has a statusCode of
-1Probably a cleaner solution but this is a good enough 🩹 fix for now imo
Investigation
Thanks to @ppoulsen we know that the line failing is this one.
Probably should do some more investigation but I am personally fine with pushing this through but am willing to have push back.
Resources
A picture from my debugging session on the users affected by this:

Testing
2 Hudl employees were able to recover their access to the app after this change was put in to effect on a local test build. Now there are no more Graph errors being spammed in the logs 🤷