Our error handling is somewhat inconsistent and there are a few aspects we could improve:
- Users can get stuck in a loop when logging in via OAuth. If their session times out, they get kicked back to the tool with the same tokens, which can raise the same errors.
- We sometimes get 500 errors from OAuth. Instead of presenting the user with a straight server error, we could pass the error message through to them.