Detecting expired oauth token during connection to IRC

I’d like to avoid having to make an additional web API call just to check, plus going that route could introduce a race condition, at which point I arrive back at the same problem.