Skip to content
Back

Show execution status 500 unable to set labels at signup

  • 0
  • Auth
  • Web
  • Functions
  • Cloud
Mohd Nehal Khan
14 Aug, 2025, 09:49

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);

TypeScript
  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.");
  }
}

};

TL;DR
Developers are encountering an issue where they are unable to set labels at signup. The appwrite Account service does not have a method for updateLabels. One potential solution could involve creating an appwrite function to update labels when a user signs up.
Mohd Nehal Khan
14 Aug, 2025, 10:39

Show execution status 500 unable to set labels at signup

Mohd Nehal Khan
14 Aug, 2025, 10:41

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

Mohd Nehal Khan
14 Aug, 2025, 10:42

@Steven , your support required.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more