In cases where requests are made in a very quick succession (looping over a list) a delay between method's check for expired token and actual request being sent/received is enough for the token to expire which causes the request to fail.
.is_expired. method should include at least 1 second padding.
In cases where requests are made in a very quick succession (looping over a list) a delay between method's check for expired token and actual request being sent/received is enough for the token to expire which causes the request to fail.
.is_expired
. method should include at least 1 second padding.