Rank 1: Thread
hey all — quick help?
goal: from a React (Vite + Chakra) app, call an Appwrite Node Function that creates/reads/updates DB docs as the logged-in user (no API key; function uses setJWT(userJwt) + per-doc perms).
tried: create session → account.createJWT() → functions.createExecution(FN_ID, body, false, "/", "POST", {"X-Appwrite-JWT": jwt}) (also tried REST POST /v1/functions/{id}/executions with X-Appwrite-JWT). Function checks authorization/x-appwrite-user-jwt, then account.get().
issue: executions keep returning 401 “Missing bearer token”; token doesn’t seem to reach the function. Execute access = Users, Web platform added, CORS handled, IDs match.
Anyone have a minimal working example or the canonical way to pass the user JWT to a function execution from the browser? 🙏