I am just trying out AppWrite Cloud and cannot get the sign-up flow to work. When signing up via account.create with username and password in the web SDK, a user is successfully created, as I can see in the the AppWrite dashboard. But no email is sent to verify the sign up. I tried with multiple email providers (including Gmail), but no email has been sent. I checked the spam folders and waited over an hour. Is there currently a problem with the email service?
Once you create an account with account.create, you need to start the email verification process with account.createVerification, and then use account.updateVerification to update the verification status.
Create Email Verification: https://appwrite.io/docs/client/account?sdk=web-default#accountCreateVerification
Create Email Verification (confirmation) : https://appwrite.io/docs/client/account?sdk=web-default#accountUpdateVerification
Keep in mind, the verified status of a user doesn't affect the authorization scope in your project by default, as the verified is just a flag.
If you want to block access to certain parts of your app to just verified users, you will need to implement this functionality.
Let me know if you have any nmore questions!
You also need a session
Hey @timp is your issue resolved?
Thanks, that helps! I still run into an scope issue, but I probably missed something in the docs.
response: {
message: 'User (role: guests) missing scope (account)',
code: 401,
type: 'general_unauthorized_scope',
version: '0.10.51'
}
role: guests means the user is not logged in / a session is not active.
So as Steven suggested, make sure to create a session for the user, then run the verification flow
Recommended threads
- fastly error
Hey! I'm hitting a Fastly error on the www version of our site, but the root domain works fine. We have a wildcard set up, so I expected the subdomain to be cov...
- Facebook's scraper facebookexternalhit g...
share.bardbliss.com but works fine on the raw fra.appwrite.run URL. No execution logs appear when Facebook hits the custom domain. This was working before. How ...
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...