I'm attempting to retrieve information about the currently authenticated user using a GraphQL query on the server. However, I'm encountering a "bad request" error with the message "(role: applications) missing scope (account)." This issue likely arises because I'm performing a server-side operation to fetch user account details, and Appwrite is unable to determine the specific user context for this operation. It seems that I need to include the JWT token from the client when making this query, but I never received a JWT token upon logging in.
I've noticed in documents there is a GraphQL query to create a JWT, but it doesn't specify the user(account) for whom the JWT is intended. This raises questions about how Appwrite determines which user(account) the JWT is associated with.
As mentioned in https://discord.com/channels/564160730845151244/1165520670252351551/1165727790163828966, the createJWT is not meant for authentication.
role: applications
means you're using an API key, which shouldn't be used with whatever api call you're making.
Recommended threads
- Cannot use createdBefore query on bulk d...
sdk: dart version: 19.2.1 ```final timestamp = DateTime.timestamp() .subtract(const Duration(days: 1)) .toIso8601String(); await databas...
- Upgrade mechanism using coolify
Hi there I am hosting an appwrite instance with coolify. Setting it up worked really well, everything works🎉 But it is stuck on the 1.7.4 version. What is ...
- Does anyone know default sender id and f...
Need it for otp verification in appwrite self hosted