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.email verification error??
Recommended threads
- flutter realtime not working since versi...
I have the problem, that in flutter the realtime does not work anymore when I upgrade the sdk to verison 21.0.0+ (works with 20.3.3) I think the queries are not...
- Getting this error when creating a websi...
when I visit the site I get 404, even if the deployment is successfull
- Error updating attribute in table with r...
I have two tables with a bidirectional relationship attribute, one called "amenities" and the other "reservations". When I try to update a field called "pricePe...