Earlier I didn't find this error while sending a request. Can you help me with this error
import { Client, Account, ID } from "appwrite";
import config from "../conf/config";
const client = new Client();
const account = new Account(client);
client.setEndpoint(config.appwriteURL).setProject(config.appwriteProjectID);
export class authService{
async signup(name, email, password){
try {
await account.create(ID.unique(), name, email, password);
return true
} catch (error) {
console.log(error)
return false
}
}
}
const authServices = new authService();
export default authServices;
I dont think the order of parameters for the account.create() call is correct. Name should go last.
Btw, it's best to use 3 back ticks with multi-line code. See https://www.markdownguide.org/extended-syntax/#syntax-highlighting
Recommended threads
- Hi Folks, Database Writing Issue
Hey Folks im trying to get logging setup on my website but im getting an error, i dont have any document id and i think this is the issue but i havent got the f...
- Middleware
how to make middleware in nextjs appwrite with client side auth?
- Error 400: redirect_uri_mismatch
Hi team, Google OAuth was working fine with our Appwrite Cloud setup until yesterday. We did not change any configuration in Appwrite, Google Cloud, or our cod...