
When attempting to create a verification, I get the following exception:
AppwriteException: general_unauthorized_scope, app.wordmap@service.cloud.appwrite.io (role: applications) missing scope (account) (401)
Implementation is as:
client.account.create(
userId: userId.value!,
email: email.value!,
password: password.value!,
);
final token = await server.account.createVerification(
url: 'https://cloud.appwrite.io/v1/wordmap',
);
print(token.secret);
The server client, I have initialised as:
final client = Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setProject('wordmap')
.setSelfSigned(status: true)
.setKey(
'MY_KEY',
);

Is wordmap
your project ID?

It is indeed @Binyamin

Cool

In the first function
What is this url?
https://cloud.appwrite.io/v1/wordmap
?

Should I even be using the dart client for creating a verification though? (confused with the whole flutter/dart client thing)

That was my stab in the dark - I have no idea what I should be putting for the URL, check docs, was a tad abstract regarding the url.

What is you're trying to achieve? And yes you can send it from the flutter/dart

So then either way, using the flutter or dart client - I still get permission/scope errors.
I'm just wanting to create an account and verify it.

In flutter (All mobile) I think it mean that you'll have to create deep link logic

You can see a lot more details here :
https://discord.com/channels/564160730845151244/1075749666009927750/1094641507769778267

you're getting that error because you need a session to call account.createVerification()

createVerification

Alright, I'll try creating a session. See how that goes

(role: applications) missing scope (account) (401) createVerification

@Steven do I pass the appwrite cloud api endpoint as the URL?
late am.Session session;
if (userId.value != null &&
email.value != null &&
password.value != null) {
final account = await client.account.create(
userId: userId.value!,
email: email.value!,
password: password.value!,
);
session = await client.account.createEmailSession(
email: email.value!,
password: password.value!,
);
final token = client.account.createVerification(
url: 'https://cloud.appwrite.io/v1',
);

No. Maybe the docs will help? https://appwrite.io/docs/client/account?sdk=web-default#accountCreateVerification
Recommended threads
- 503 Timeout when Updating or Upserting D...
Hey I’m running into an issue when trying to update or upsert a row in Appwrite. The request hangs for a while and then throws this error: ``` AppwriteException...
- Hola equipo de soporte,
Hola equipo de soporte, Estoy desarrollando una Function en Appwrite Cloud con Node.js 22 y el siguiente package.json: { "name": "upload-whitelist", "type"...
- Sites 30MB limit from GitHub
I’m deploying a site from github as Other type on the Hobby plan. It is actually a Flutter web app but it’s in a subdirectory with the root being an html landin...
