When I intentionally ran a command post-token expiry (to make sure my autorefresher works), the exception that was thrown by the invalid OAuth token was a BadScopeException, despite the fact that both TokenExpiredException and BadTokenException exist. While it wasn't logged what headers the return response came with, the response code and body was a 401 with:
When I intentionally ran a command post-token expiry (to make sure my autorefresher works), the exception that was thrown by the invalid OAuth token was a
BadScopeException
, despite the fact that bothTokenExpiredException
andBadTokenException
exist. While it wasn't logged what headers the return response came with, the response code and body was a 401 with: