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
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- fastly error
Hey! I'm hitting a Fastly error on the www version of our site, but the root domain works fine. We have a wildcard set up, so I expected the subdomain to be cov...
- Facebook's scraper facebookexternalhit g...
share.bardbliss.com but works fine on the raw fra.appwrite.run URL. No execution logs appear when Facebook hits the custom domain. This was working before. How ...