
This is my code constructor() { this.client .setEndpoint(conf.appwriteUrl) .setProject(conf.appwriteProjectId); this.account = new Account(this.client);
TypeScript
}
async createAccount({email, password, name}) {
try {
const userAccount = await this.account.create(ID.unique(), email, password, name);
if (userAccount) {
// call another method
return this.login({email, password});
} else {
return userAccount;
}
} catch (error) {
throw error;
}
}
TL;DR
Issue: Developers are encountering an "Invalid UserID" error when signing up in the project.
Solution:
To rectify the "Invalid UserID" error, ensure the correct user ID is being generated and passed when calling the `create` method. Double-check the `ID.unique()` functionality and its implementation to guarantee the proper creation of user IDs. Recommended threads
- A full logout for users logged in via Go...
I have a web app in reactjs that uses the Google login that is integrated into Appwrite for user login. I use `createOAuth2Token()` to login to their account. ...
- Relationship problem
When I UPDATE a document that has a relationship and I pass id and all the data of the relationship it works but if i CREATE a document then it says 401 user un...
- How many functions can I run simultaneou...
I want to konw, how many functions can I can simultaneously in appwrite cloud? I want to make a chat app where user sends text and text is processed using funct...
