Back

[SOLVED]Invalid email problem

  • 0
  • Web
π™π˜Όπ™‡π™‡π™€π™‰π˜Ύπ˜Όπ™‹
25 Jun, 2023, 16:18

I'm getting invalid email on signup altough the email is valid

TL;DR
The user had an issue with getting an "invalid email" error message while signing up, despite having a valid email. The issue has been solved by changing the parameters order in the account creation function. The correct order is: ```js account.create( uuidv4(), user.email, user.password, user.name ) ``` More details can be found in the documentation: https://appwrite.io/docs/client/account?sdk=web-default#accountCreate
Binyamin
25 Jun, 2023, 16:35

You just need to change the parameters order

TypeScript
account.create(
  uuidv4(),
  user.email,
  user.password,
  user.name
)

Check here https://appwrite.io/docs/client/account?sdk=web-default#accountCreate for more details

π™π˜Όπ™‡π™‡π™€π™‰π˜Ύπ˜Όπ™‹
25 Jun, 2023, 18:11

thanks for help😁

π™π˜Όπ™‡π™‡π™€π™‰π˜Ύπ˜Όπ™‹
25 Jun, 2023, 18:11

[SOLVED]Invalid email problem

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