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
- Invalid Origin. Register your new client...
- Endless certificate generation cycle
Hello, when I try to add the subdomain stats.hedgehog-rp.ru, I get an infinite loop while the certificate is being generated. There are no problems with adding ...
- Realtime not working for some tables
Hi, I've got an issue where I can setup a realtime connection to listen to some tables, but some not all. I have two tables `history` and `users`. Both can be ...