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
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deep Linking & Password reset
I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I havent ever used de...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...