
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
- Login redirect going to http not https
Hi yall, I'm having an issue where the redirect URL is going to http, instead of https. I think this is a bug. ``` https://accounts.google.com/o/oauth2/v2/auth...
- Can't sign in after upgrade
I used the upgrade code in from the documents but now I can't sign in I get this log document error that gets cut off,
- Google OAuth
I am having trouble using the google log in in my app. Getting error: Error 400 Invalid redirect URL for OAuth success. project_invalid_success_url I have tryi...
