So I have successfully setup my user signup form using Supabase authentication. Im using Mailgun to send emails which works as well as i receive the email to verify the account.
From what I can tell there is an auth collection that is set as private within Supabase. This is really where my struggle starts. So by default the setup is created with email and password. Other than created dates etc. that are populated by Supabase there’s not much i can add that im aware of.
During account creation I’d ideally like to populate a collection with first name, last name as the start of a user profile that could be completed later but first and last name would be a good start. As an added bonus collecting the company name to populate a company profile collection would be nice as well.
I feel like during the account setup workflow i should be able to add multiple steps but im not sure how to go about it. Something like
- Create user with email and password.
- Return created user id
- Add first name and last name with user id to the user profile table
- Obtain user profile id from last step
- Creat company name in company table and add user id/profile id although user id maybe sufficient.
Am i way off on this logic or is there a better way to do this?