Skip to content
Back

Using createAccount, I want to save users as buyer or seller to labels in appwrite console

  • 0
  • Auth
  • Web
  • Cloud
Mohd Nehal Khan
5 Aug, 2025, 05:13

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

TL;DR
Developers creating an e-commerce app using Vite, Tailwind, and Appwrite services need help capturing and saving user roles as either buyer or seller during signup. In the auth.js code, they aim to include the role selected by the user in the console logs after account creation. The developers seek guidance on how to achieve this functionality.
Mohd Nehal Khan
5 Aug, 2025, 05:13

Using createAccount, I want to save users as buyer or seller to labels in appwrite console

Mohd Nehal Khan
5 Aug, 2025, 05:17

My application signup page look like this

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