Limit repeated queries when token is not valid.