Using createAccount, I want to save users as buyer or seller to labels in appwrite console
- 0
- Auth
- Web
- Cloud
I am creating an e-commerce application using Vite, Tailwind, and Appwrite services for both customers and sellers. In the signup form, I have included fields for name, email, password, and a role selection input (either buyer or seller). However, in the auth.js code, I need help on how to capture the role input as role: seller or role: buyer.
In the async function createAccount({ email, password, name }) I have, I'm trying to create a user account with Appwrite. The user account is successfully created with the name, email, and password, but right now, the selected role is not being logged in the console. I would like to include the role chosen by the user during signup; how can I accomplish this? auth.js code , signup code & labels show in console of a user attached to screenshot
Using createAccount, I want to save users as buyer or seller to labels in appwrite console
My application signup page look like this
Recommended threads
- Create a new paid tier
Current pricing seems reasonable enough about what is someone getting for 25$. But for some people most of these resouces are getting wasted. Like the bandwidt...
- [Bug] Appwrite Auth User Prefs
User prefs are decoded as blank although there are plenty of data and add preference button not working in this case
- Collections list not showing up when try...
I'm trying to create new relationship attribute but both one way and two way relationship is not showing up collections list to connect with my relationship att...