Hi everyone! 👋 I’m a junior developer working on a login flow using Appwrite’s Python SDK with FastAPI.
After successfully creating a user session, I tried sending the user an MFA challenge using the create_mfa_challenge route but I’m greeted with this error:
{"detail": "Invalid credentials: app.66def3e30023dc74cc00@service.cloud.appwrite.io (role: applications) missing scope (account)"}
I can confirm my API key has been granted access to all the scopes.
I also attempted to initialize a new account instance using client.set_jwt with the session["secret"] as JWT. However, when I try calling methods I run into the following error:
{"detail": "Invalid credentials: Failed to verify JWT. Invalid token: Incomplete segments"}
I suspect I may have set something up incorrectly or misunderstood how session handling works in Appwrite. I’d appreciate it if someone could point me in the right direction. Please bear with me if I’ve made any rookie mistakes—still learning! 😊
Recommended threads
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...