Wrap token verification in retry loop.
We occasionally have difficulty communicating with the token verification endpoint. The symptom is OSError
being raised with ECONNRESET
. (Being raised by requests as a requests.exceptions.ConnectionError
.)
Wrap the OAuth2 session in a retry loop.