I am getting error when I get current user, for more please check attached screen shot
TL;DR
Developers are encountering an error message "AppwriteException: User (role: guests) missing scope (account)" when attempting to access the current user. See screenshot for more details.