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
- cross-origin request blocked
i have added platforms but still facing issue on free-tier
- Email Verification Delay Issues - Need H...
Hi everyone! I launched my product yesterday after testing, and I'm seeing users drop off during email verification. Initially thought users didn't like the pro...
- Im getting stuck adding appwrite to reac...
I'm new to the app development scene and am trying to learn fast through tutorials and stuff. One that I am following is outdated in terms of using appwrite. I'...
