Julián HinojosaOriginal post
Flutter Developer
Hey, I'm trying email verificacion with this signup implementation using deep links on iOS, but when creating the account I get this exception:
Exception: Error when creating account: User (role: guests) missing scope (account)
SignUp Impl:
Dart
Future<String> signup({required String email, required String password, required String userType}) async { try { final result = await account.create( userId: ID.unique(), email: email, password: password, name: userType );
// Enviar correo de verificación await account.createVerification( url: 'fixflats://verify', ); return 'Usuario creado con éxito: ${result.email}'; } on AppwriteException catch (e) { throw Exception('Error al crear la cuenta: ${e.message}'); } }Why could this error mean??
Summary
Issue: Error when creating account due to user missing scope (account)
Solution: The error likely occurs because the user role "guests" does not have the necessary scope "account". Check the user's role permissions to ensure they have the required scope for account creation.