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
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here π I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...