get the current user asynchronously

I want to retrieve the current logged in user asynchronously because currentUser() always retrun null

Hello, Mahmoud!

It sounds strange that currentUser() returns null. This value is set inside SDK after calling “login” method.
Anyway, in order to retrieve user you can use Data service find API call as described here:
best regards,