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
- SSL Certificate Failure - Using Appwrite...
When we attempt to apply our custom domain to our appwrite site, we consistently receive the following error. [23:44:49] Processing SSL certificate issuance. ...
- [Self-hosted] Realtime crashes with "Mis...
- Regarding Rate Limits
Hello, I am a student engineer who built an internal website for my university club using AppWrite. My club currently has around 500 members, and when I recent...