How to get error on onAuthRefreshError?

When onAuthRefreshError is triggered no params are passed. That means we cannot distinguish between what error happened. Is there anyway to do this?

Today implementation is like this =>

if (req.status == 400) {
   kc.clearToken();
}

kc.onAuthRefreshError && kc.onAuthRefreshError(); //here req is not passed on
for (var p = refreshQueue.pop(); p != null; p = refreshQueue.pop()) {
   p.setError(true);
 }