support of promised checkAuth function