
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
- Cannot upgrade an anonymous account with...
Unless I am just not doing it right, its not possible to upgrade an account from anonymous, using magic URL. This is fine - I have worked around it in my app n...
- Facing Problem during add platform: loca...
I am facing this problem in appwrite during Add a platform . After I select web, it redirect me to the Hostname Registration page, and when I enter localhost i...
- Getting 500 [Internal error] while tryin...
I had just created a new account and after creating my organization, I got thie 500 internal error. I tried logging in again also deleted cookies and cache but ...
