Await app.allUsers gives undefined

I am using realm as my authentication method. I have enabled Email/password, anonymous user, and Custom JWT. I can these three types of users are logged in the realm UI. But when I use the await app.allUsers to get all the authenticated users Sometimes it gives me undefined. I have installed “realm”: "^10.13.0 and “realm”: "^10.14.0. But I get the same result
My Project is REST API which is developed in node js. Please help me out