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
- Appwrite DNS nameservers return SERVFAIL...
My custom domain demomanasa.online (and all its subdomains) stopped resolving with ERR_NAME_NOT_RESOLVED for all visitors. I have traced the failure to Appwrite...
- Framework categorization for Sites
Hello, I want to deploy my web app via Appwrite SItes. My web app is vite+reactjs. In the Appwrite docs, it creates a vite+react app, and chooses React from the...
- Not allowed permission to upsert a prese...
```js const presenceID = ID.unique(); setPID(presenceID); const presence = await presences.upsert({ presenceId: presenceID, status: "online"...