Rank 1: Thread
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