After refreshing the app it is working perfectly
TL;DR
Developers encountered an "user_unauthorized" exception in the Appwrite platform, indicating a lack of authorization to perform an action. They followed a document link for more information on the error. The issue was resolved by simply refreshing the app, after which it worked correctly.