Back

Session active but can't get he user detail from the database

  • 0
  • Self Hosted
  • React Native
HagenaJado
6 Jan, 2025, 17:52

Hello, I am developping an app with appwrite an react native, I use eamil and password auth, the issue I am facing is like this I created a collection for users in the database and when I login I wish to get the data of a logged in user from that collection and use it in the app, but the user is being created and the session created, the user is being added to the database but when I try to fetch the data for the logged in user I get this error [AppwriteException: The current user is not authorized to perform the requested action.]. When I check the dashboard I see that there is an active session but I can't get the data for that user, I have set that anyone can read data from that collection. what might be the problem

TL;DR
Developers facing error trying to fetch user data from database despite active session and correct collection permissions for read access. The issue may be related to session authentication. Double-check authentication token validity or try refreshing session.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more