
I want to set the labels at the time user signup to my application , all things work , users data save in auth, updateprefs set , a verification email sent , but unable to set labels bcz in appwrite Account service their is no method for updateLabels, any one can help me using appwrite Function how can i acheive it
Signup.jsx(some code where i do the usercreation ) const create = async (data) => { setError(""); try { await authService.createAccount(data);
await authService.updatePrefs({ role: data.role });
const updatedUser = await authService.getCurrentUser();
const mergedUser = updatedUser? { ...updatedUser, prefs: { ...(updatedUser.prefs || {}), role: data.role }, }: null;
if (mergedUser) dispatch(login({ userData: mergedUser }));
authService.sendVerification();
} catch (error) {
if (error.code === 400) {
setError("Password must be at least 8 characters long.");
} else {
setError("Email already exists.");
}
}
};

Show execution status 500 unable to set labels at signup

I have a signup functionality in my application , where i create a user , save its role using updateprefs , send a verification mail and login in to the application as per their role , but i also want to updatelabels at the time of signup which appwrite AuthService can let me do so i create an appwrite function to updatelabels when user signup

@Steven , your support required.
Recommended threads
- Why can't I sign up on whitelisted email...
I’m trying to sign up in the Appwrite console using a whitelisted email address, but it doesn’t work. What happens: Sometimes I get “User already exists” for ...
- UI for creating API keys is broken (chro...
It get stuck like in the screenshot, cant scroll further down or find/click the button to create the API key.
- I want to know about the new pricing pla...
My project is around 150 to 200 in appwrite so do I have to pay $15 per project for each of them separately or just for them will I have to pay only $25 monthly
