DN JoshOriginal post
Rank 1: Thread
I have a simple form component that is expected to create a new user using the the ###firstName, ###lastName, ###username, and ###password from a react-hook-form application.
Is it possible to create this is user on the click of the form's submit button and have that user created on the appwrite account?
Summary
Code sample provided for creating a user account with React hook form. Missing implementation details, and not tested. Need to replace ###firstName, ###lastName, ###username, ###password with correct fields. Possible solution involves calling account.create and account.createEmailPasswordSession within onSubmit, then navigating to the app upon successful creation.