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
- coolify help
need some help when i updated the docker compose config on coolify to update appwrite to latest version my old versions project and organization was totally ina...
- No permissions provided for action 'read...
I have a very weird error; In a function I'm using dynamic keys to perform read write operation in rows. I have the scopes for read and write rows. The funct...
- Problem with email links
Hi. I'm receiving emails without working links, the text that is suposed to be a link is plain text...