Hi guys, I have a multistep register form with more info than name, email and password as seen with most tutorial. Anytime I sned a request with all these info I get a bad request. How do I solve or appwrite register auth only allow the name, email and password values only? Please I will need help on this one is this valid?: await account.create( ID.unique(), userInfo.name, userInfo.email, userInfo.password, userInfo.linkedin, userInfo.twitter, userInfo.github, userInfo.about, userInfo.bio );
I am getting a bad request error and this is coming from my Register page and utils/ Authcontext
I will appreciate your help as we are very close to the deadline
You need to store that information seperately. Create the user with what Appwrite expects for the user details, and then add the additional information as something else, linked to that user. Most likely a document in a collection specific to storing additional user data.
Ohh okay thanks for this
I really appreciate. It seems this is not possible
Much love brother
You can store and retrieve the info you want to, just not in a single request whilst creating the user. Its just the workflow thats different
Do you have any resources on how to do that
I know if I still can create the user. Linking of the user is going to be very hard for me
I don't have much experience
The docs are a great place to start. Look at how you create a user using your SDK, and similarly storing and retrieving documents in a collection in a database, and how that can be linked to a user
it is that linking that is my problem. I would surely check it out. Thanks a bunch for this
Just have a column in your collection which holds the Id of the user. Then when you insert the data, it would be the user's Id, then any info you want to store on them. Then you can pull this data in whatever way makes sense later etc
Ohhh yeah, how come I never thought of this. Thanks a lot
Recommended threads
- [ENHANCEMENT] Use the custom Next.js dep...
Deployment adapters on Next.js are now stable! This means that we don't have to stick to the limitations of sniffing out build outputs and manually moving or mo...
- NextJS builds sudden runtime_timeout
My builds suddenly stopped working. Activating old prebuilt snapshots work, but redeploying that same code produces builds that throw runtime_timeout FRA region
- Project paused?
Hello, I have two Appwrite projects and I can not resume them for some reason. I'm using the free plan, and I saw in the pricing page that 2 free projects are a...