Back

[SOLVED]Sending verification email fails on Flutter macos but works fine on IOS

  • 0
  • Accounts
  • Flutter
  • Apple
zjjt
27 Jul, 2023, 08:58

Hi guys is there a way to make the password recovery and the account verification features work for flutter desktops. I tested on a ios simulator and I am able to receive the mail fine whereas when I trigger it from the desktop I get this exception AppwriteException: general_unauthorized_scope, User (role: guests) missing scope (account) (401)

TL;DR
The user is experiencing an issue with sending verification emails on Flutter macOS. They receive an AppwriteException "general_unauthorized_scope, User (role: guests) missing scope (account) (401)". It works fine on iOS simulator but not on macOS. They have already added their macOS to the "platforms" in the Appwrite console. The user suspects that the session is not stored client-side on macOS. The problem occurs specifically with account verification, not password recovery. Solution: The issue may be due to the lack of a valid session on Flutter macOS. Make sure a valid session is present in the Appwrite console.
Tomic R.
27 Jul, 2023, 09:35

Have you added your mac to the "platforms" in your appwrite console?

zjjt
27 Jul, 2023, 12:51

@Tomic R. yes i did ...i have all supported platforms in my appwrite instance. However what i did notice is that it is behaving like the session is not stored client side on macos. But it works fine in the ios simulator

zjjt
27 Jul, 2023, 12:56
zjjt
27 Jul, 2023, 12:57

for now i develop using the macos platform for responsive layout and so far i have only tested with it and the ios simulator thinking if it worked once it would work everywhere

Drake
27 Jul, 2023, 18:19

uhh which are you talking about? password recovery or account verification? you shouldn't get this error on password recovery because that api is public. you could get this error when starting the account verification because you need a valid session

zjjt
27 Jul, 2023, 18:21

I am currently dealing with account verification. i dont know why for flutter macos it seems like there is no valid session while in the appwrite console the session is there.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more