Skip to content
Back

email verification error??

  • 1
  • Self Hosted
  • Flutter
  • Apple
  • Auth
Julián Hinojosa
5 May, 2025, 17:16

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:

TypeScript
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??

TL;DR
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.
Julián Hinojosa
5 May, 2025, 17:54

email verification error??

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