Don't run a query if another specific query is already in flight (don't want to refresh auth tokens while I'm in the middle of running logout mutation)

I have an authLink that will refresh auth tokens periodically

Sometimes, if the timing is right, it will try to refresh auth token when I’m also running a logout function… and depending on the timing it will be able to refresh the token even when they’re suppose to be getting logged out.

Is there a way to check that my logout mutation is not running before I run my refreshTokens mutation?