Back

No emails received after signup

  • 0
  • Users
  • Web
  • Cloud
timp
10 Aug, 2023, 14:28

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?

TL;DR
User is experiencing an issue where no emails are being received after signing up on AppWrite Cloud. Another user suggests that the issue might be related to the user not being logged in or a session not being active. The solution is to create a session for the user and run the verification flow. The user acknowledges the solution but mentions they are still facing a scope issue. The thread ends with someone asking if the user's issue has been resolved and reminding them that they need a session. Solution: Make sure to create a session for the user and run the verification flow. If there is a scope issue, refer to the documentation for any missed
safwan
10 Aug, 2023, 14:34

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

safwan
10 Aug, 2023, 14:37

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.

safwan
10 Aug, 2023, 14:37

Let me know if you have any nmore questions!

Drake
10 Aug, 2023, 20:26

You also need a session

safwan
14 Aug, 2023, 10:05

Hey @timp is your issue resolved?

timp
14 Aug, 2023, 17:11

Thanks, that helps! I still run into an scope issue, but I probably missed something in the docs.

TypeScript
response: {
    message: 'User (role: guests) missing scope (account)',
    code: 401,
    type: 'general_unauthorized_scope',
    version: '0.10.51'
  }
safwan
14 Aug, 2023, 19:07

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

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more