I am following the react web tutorial given in the appwrite docs. https://appwrite.io/docs/tutorials/react/step-1 For some reason I am able to login a user if I manually create one through the console. But if do it through the client it throws some erros from one of the account modules.
That tutorial is incorrect. account.create() has three required parameters - userId (which you can set to unique() to have Appwrite generate one automatically), email and password.
The code is given in the third picture
it says unique isnt defined ?
it also says cannot access userId before intialization
Nevermind I didnt import the ID from appwrite module
Here is the code
Close the thread as SOLVED.
Not able to register a user [SOLVED]
@VincentGe do we have a PR for this yet?
[SOLVED] Not able to register a user
Sorry, I meant "unique()" as a string (ID.unique() just returns a string "unique()")
Ugh I swear I fixed this
Review please
happening with me as well mhow did you solve this?
Whatβs your issue?
nvm, I opened another thread and the issue is resolved
Recommended threads