I am using flutter to develop. After calling the createVerification method, I received an email. Then I clicked on the email, but the user in the cloud.appwrite.io backend is still not verified. I don't know what to set。
final models.User user = await AppwriteService.instance.account.create(
userId: ID.unique(),
email: email,
password: password,
//name: name,
);
final session = await AppwriteService.instance.account
.createEmailPasswordSession(email: email, password: password);
// 发送验证邮件
await AppwriteService.instance.account.createVerification(
url: 'https://cloud.appwrite.io/',
);
is that right?
You need to set the URL to a page of your app (deep link) or to an external website (for example: https://authui.site) in order to complete the verification.
In the verification page, you will need to trigger
account.updateVerification(userId, secret); and specify there the user account and the secret that was in the URL
You have this as reference too: https://appwrite.io/docs/products/auth/email-password#verification
That means I need to write my own page that validates the user
Yes
Or use Authui, that is the link I sent, but the app will not be opened as it will be handled there
OK, thanks for your reply:appwritepeepo:
Recommended threads
- I now have the Github Student Developer ...
I have access to the Github Student Developer Pack, and it states Appwrite is included but when i try to access it, it says i dont have it. im thinking this is ...
- Trying to deploy on paid cloud plan and ...
Trying to deploy on paid cloud plan and receiving: no space left on device, write
- Bandwidth limit for your organization ha...
I received an alert that I exceeded the Free plan bandwidth limit (showing 5.86 GB), but my dashboard tells a different story. The usage stats there are much lo...