
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
- Sites and SSL
Hi! I'm trying to configure Appsite sites, and I'm using Cloudflare for SSL. After I generate the SSL certificate (It generates fine it seems), I go and load t...
- Storage & Database is not allowing.
Storage & Database is not allowing to CRUD after i have logged in ? Using web SDK with next.js without any SSR or node-sdk.
- fix attribute view
enum attribute elements style, when adding many options, the elements box should be responsive
